Skip to content

fix: keep the reaction bar unclipped and let the mobile emoji sheet close - #457

Merged
xHeaven merged 1 commit into
dev-null-sh:productionfrom
xHeaven:fix/reaction-bar-clip
Oct 18, 2026
Merged

xHeaven merged 1 commit into
dev-null-sh:productionfrom
xHeaven:fix/reaction-bar-clip

Conversation

@xHeaven

@xHeaven xHeaven commented Oct 18, 2026

Copy link
Copy Markdown
Member

Follow-up to #452.

Problems

  • Desktop: the hover reaction bar was partly or fully cut off at the top. It happened on messages with no author line above them, such as your own messages, or anything that starts a new group.
  • Mobile: once the long-press overlay or the emoji sheet was open, tapping outside it did nothing.
  • Mobile: the emoji sheet couldn't be pulled down to put it away.

Fixes

  • Clipping: every thread row has content-visibility: auto, which clips anything painted outside the row. The bar sits above the bubble, so the row clipped it. A row now switches to content-visibility: visible while it's hovered, focused, or has its picker open. A row in that state is on screen anyway, so nothing is lost for rows off screen.
  • Tap outside: Radix sets pointer-events: auto inline on dialog content, which overrode the pass-through class. The full-screen content was catching every tap as "inside". Now a tap anywhere except the message preview, the quick bar, Copy text, or the sheet closes the overlay.
  • Pull down: the sheet has a drag handle. Pull it down past 80 px, or just tap it, and the sheet hides, returning to the quick reactions. A shorter pull springs back. The handle is a button, so the keyboard works too.
Before (desktop) After, dark After, light
Bar clipped above an own message Bar fully visible, dark Bar fully visible, light

Mobile: pull the sheet down, then tap outside to close (touch emulation)

Long press, open the emoji sheet, pull it down to collapse, tap outside to close

MP4

Collapsed after pulling down
Sheet collapsed back to the quick bar

Validation

  • bun run test:types, bun run test:lint, bun run build.
  • Desktop, light and dark: hovering an own message without an author line. Hit-testing at the bar's top edge reaches the bar again (before the fix it reached the row underneath).
  • Mobile touch emulation:
    • tapping outside the quick bar closes the overlay
    • with the sheet open, tapping between the message and the sheet closes the overlay
    • a 40 px pull leaves the sheet open, and a 200 px pull collapses it to the quick bar
    • no accidental reactions during any of this

Limitations

  • Frontend only, with no new automated tests: the repo doesn't allow browser tests.
  • The sheet only collapses from its handle, not by dragging the grid when it's scrolled to the top.
  • Mobile was checked with Chrome touch emulation, not a real device.

@xHeaven
xHeaven merged commit 00793d4 into dev-null-sh:production Oct 18, 2026
5 checks passed
@xHeaven
xHeaven deleted the fix/reaction-bar-clip branch October 18, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant