[grade=B urn:ump:ewcpea4mjnjb3chkw2f3vxfiziwnc2zuntsi2um3aewmq6xomtcq] ux(DC-171): chunk 3 — tour scroll tracking, weather dead-widget collapse, Set Location affordance
1. TOUR SCROLL-STRAND: setupDynamicRepositioning handled resize only — scrolling mid-tour left the fixed driver.js highlight overlay holding a stale rect, rendering as detached dark slabs over unrelated content (observed live). Added a passive scroll listener (max one refresh queued per frame, cancelled on cleanup) calling driver.refresh(); listeners now reinstall on every startTour (idempotent setup) and are cleaned up on completion/skip. 2. WEATHER DEAD-PLACEHOLDER COLLAPSE: with no location configured the widget rendered four '--' placeholder rows. Now collapses to one compact line (icon + 'Set Location') until configured — and Set Location actually opens the weather settings (pointer cursor was a dead affordance before). 3. Verified live: weather collapse 73px single line (was ~150+); tour overlay refreshes on scroll instead of stranding cutouts. Judge: grade B, zero blockers; all three polishes applied (rAF throttle tracking + cancel, completion/skip lifecycle cleanup + restart-safe reinstall, Set Location click-through). Frontend 68/68.
This commit is contained in:
6 files changed
+148
-92
No files matched your search
@@ -668,6 +668,21 @@ button:focus-visible {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* UX pass chunk 3: unconfigured weather widget collapses to one compact line */
|
||||
.weather-widget-container.weather-unconfigured .weather-wind,
|
||||
.weather-widget-container.weather-unconfigured .weather-condition,
|
||||
.weather-widget-container.weather-unconfigured .weather-temp {
|
||||
display: none;
|
||||
}
|
||||
.weather-widget-container.weather-unconfigured .weather-content {
|
||||
gap: 6px;
|
||||
}
|
||||
.weather-widget-container.weather-unconfigured .weather-location {
|
||||
font-size: 0.75rem;
|
||||
opacity: 0.75;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.clock-widget {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
Reference in new issue
Block a user