fix(ui): show-more visibility + reaction-picker dismissal regressions #397
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/room-polish-regressions"
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?
Two regressions from LC-385 / LC-384, reported live.
1. "Show more" under every message (LC-385)
The new
.lc-collapse-togglesetdisplay:inline-flex, which overrode the[hidden]attribute (an author class beats the UA[hidden]rule), so the toggle rendered under every message instead of only overflowing ones.Fix: revert the control to its original blue accent link (
mt-1 text-xs text-accent hover:underline) - the look the user preferred - which leaves[hidden]working again, soauto_scroll.htmlreveals it only when the body overflowsCOLLAPSE_MAX. The rotating-chevron CSS + the JS class toggle are dropped; the improved (taller, smoother) bottom fade is kept.2. Reaction picker vanishes when you reach into it (LC-384)
The popover auto-dismissed on any document scroll (capture) and on resize, which fired on stray trackpad scrolls, the filter-input focus, and the mobile keyboard - so it disappeared the moment the pointer moved into the emoji grid.
Fix: remove the scroll + resize close handlers entirely. The popover is fixed and anchored at open time (the hover-revealed trigger collapses to
display:noneonce the pointer leaves the row, so it can't be re-measured to reposition anyway). It now closes only on outside-click / Escape / a react, and focuses the filter withpreventScroll. A list scroll lets it drift slightly, harmless for the interaction.Tests
./dev/cargo check,just build-css,just test,just test-saas- all green.🤖 Generated with Claude Code