Fix the queue chip fade falling short of the right edge #30
Reference in New Issue
Block a user
Delete Branch "fix-chips-fade-edge"
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?
Reported against v0.35.0: the scroll-fade on the queue filter chips ends slightly before the actual screen edge, instead of reaching it.
Cause:
.chips-fadewasposition: stickyas the last flex item of the row it's overlaying. Its sticky offset (right: -1px) interacted with the row'sgapand the item's ownmargin-left: -24px, landing it short of the true edge — visibly, a sliver of the next chip's rounded edge stayed poking out past where the fade should have covered it.Fix: switched to the simpler, more robust pattern for an edge-fade on a scrolling row —
position: absoluteagainst aposition: relative; overflow: autoparent, notsticky. An absolutely positioned child resolves against the parent's own (non-scrolling) box, so it stays flush with the real edge at any scroll position, without the flex-gap/margin interaction that caused this.Verified visually, not just by re-reading the CSS: no browser automation tool is available in this environment, but Chromium's
headless_shellbinary is on the machine, so I built a standalone reproduction of both the old and new.chips/.chip/.chips-fadeCSS and screenshotted each at a 390px mobile width.Local gate (
fmt lint test helm-lint, including-race) is green.