Covers the two bugs fixed in the previous commit:
- Verifies the first button gets data-selected="true" on initial render so the
CSS highlight rule fires immediately (regression for the dep-array fix).
- Verifies the first button is also stamped when async search results load new
buttons after the initial render (the original regression).
- Verifies keyboard navigation via the AUTOCOMPLETE_NAVIGATE_EVENT moves the
selected index and that it clamps at the list boundaries.
Also adds an eslint-disable comment in AutocompleteMenu.tsx explaining why
the no-dep-array useLayoutEffect is intentional (setSelectedIndex is a stable
React setter; the conditional call cannot cause an infinite loop).
Two related bugs in the mention/room/emoji autocomplete:
1. Enter key always inserted the first suggestion instead of the highlighted one.
Cause: querySelector('[data-selected]') matched ALL buttons since every button
has the attribute set to either 'true' or 'false'. The first button in DOM
order was always returned.
Fix: use '[data-selected="true"]' to select only the active item.
2. The first item had no visual highlight on initial open (the CSS rule requires
data-selected='true', but the useLayoutEffect responsible for stamping that
attribute only re-ran when selectedIndex changed -- not when buttons first
appeared after async search results loaded).
Fix: remove the dep array so the effect runs after every render; newly-loaded
buttons are stamped immediately.
RoomCallButton was calling startCall(room) without passing preferences,
which caused Element Call to use its own defaults (camera on) instead of
the user's saved settings. Now reads preferences via useCallPreferences()
and passes them to startCall(), matching the behavior of PrescreenControls.
Fixes#285
Overrides browser find-in-page (Ctrl+F) to open Sable's search modal
instead, matching the behavior users expect from chat applications.
The existing Ctrl+K hotkey remains functional.
Fixes#179
WebKit (Safari/iOS) has a rendering quirk where colorful emoji inside <b>
tags can contaminate the paint color of adjacent sibling text nodes. This
caused display names following a user with an emoji (e.g. '🔴 Alice') to
render with the emoji's color instead of the expected text color.
Apply -webkit-text-fill-color: inherit on <b> name tags and
-webkit-text-fill-color: currentColor on the following <Text as="span">
elements. This explicitly resets the WebKit fill color chain at each step,
preventing emoji paint properties from cascading into sibling spans.
Fixes#267
The thread drawer had padding: S600 0 (24px top+bottom) on both the root
message box and the reply messages box, plus S200 padding on the reply count
label. This stacked up to ~84px of empty space between the root message and
the first reply, especially noticeable in newly created threads.
Fix:
- Root message box: change bottom padding S600→S200 (top kept at S400)
- Reply messages box: remove top padding (reply count label already provides
visual separation)
Fixes#294