fix(calendar): keep the 12 AM row clear of the sticky header (MAPPS-387) #449
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-387-midnight-row-clipped"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
MAPPS-387 follow-up: 12 AM row clipped by the sticky header
Reported on staging (ref-off.png): the top row (12 AM) is cut off and cannot be scrolled into view.
Cause
The hour-gutter labels carry
-mt-2so each label sits on its gridline. For the first row that pulls the12 AMlabel up under the week grid's sticky day-of-week header (and off the top edge of the day view's scroll box). Since midnight is already at scroll-top, there was nothing above it to scroll to, so the label stayed hidden.Fix
Add
pt-2(the same 8px) to the grid body of both the week and day views. This offsets the first label's negative margin so 12 AM clears the header and renders fully, while every other label stays aligned to its line. No behavior change to scrolling, geometry, or the dispatch timeline.Verified:
cargo fmt --all --check,cargo clippy --all-targets -- -D warnings, andcargo check --target wasm32-unknown-unknownall pass on 1.94.1.