LibreChat/client
Danny Avila 7694428ca9
💬 style: Right-Align In-Flight Steer Bubbles to the Message UI (#14814)
* 💬 style: Right-Align In-Flight Steer Bubbles to the Message UI

The chat surface reads as message bubbles now — user turns on the right,
assistant turns on the left — but the in-flight steer bubbles anchored above
the composer were still left-aligned, so a steer sat on the opposite side from
the words the user had just sent, then jumped across on `on_steer_applied`
when the persisted `SteerPart` landed in-thread on the right.

Align the overlay with the user turn it belongs to:

- The bubble stack right-aligns and is constrained to the message column
  (`max-w-3xl`), so the in-flight bubble sits where its applied twin lands
  instead of ~52px further right (the composer runs wider than the message
  column at `xl`).
- The bubble adopts the same theme-token geometry as `SteerPart` and every
  user turn (`rounded-theme-surface rounded-br-theme-control`,
  `px-theme-normal`), replacing the raw `rounded-3xl`/`pl-3 pr-4`. It keeps its
  outline: an in-flight steer is still provisional.
- The controls flank the bubble — overflow menu outboard-left, send-now arrow
  outboard-right — so neither reads as belonging to the other. DOM order
  matches visual order, so focus order stays coherent.

Also drops the thin `bg-border-medium` divider that bound the arrow to its
message: with the arrow now outboard on the far side of the bubble it has
nothing to separate, and `EscalateNowButton` no longer needs its fragment.

* 💬 style: Center the Steer Controls on the Bubble's First Line

The flanking controls read as neither top-aligned nor centered, because their
resting position was an accident of `sticky top-2`: the topmost rail trips the
sticky inset at rest and is shoved 8px below the row top, while every rail
below it clears the inset and stays at the top. So the controls sat 3.8px above
the bubble's centre — and stacked steers did not even agree with each other.

Give each rail a `py-3` band that reproduces the bubble's own first line (its
`py-2.5`, its 1px border, and half the gap between the 24px control and the
taller text line box), and pad the overlay evenly so the topmost rail already
clears the sticky inset instead of being displaced by it.

A 24px control now centres on the first line: measured at 722.0 against the
text's 721.8, versus 718.4 before. Beside a one-line steer that reads as
centred; on a tall one it aligns to the opening line rather than drifting to
the middle, and sticky still carries it while the stack scrolls.
2026-08-13 23:37:18 -04:00
..
public 🪢 feat: Langfuse Fanout Connection Setting (#14108) 2026-07-29 18:33:10 -04:00
scripts
src 💬 style: Right-Align In-Flight Steer Bubbles to the Message UI (#14814) 2026-08-13 23:37:18 -04:00
sw
test 🔒 chore: Upgrade react-router-dom to v7.18.2 (security) (#14582) 2026-08-01 17:19:52 -04:00
babel.config.cjs
check_updates.sh
index.html
jest.config.cjs 🧭 refactor: make the side panels behave the same way (#14695) 2026-08-08 23:15:46 -04:00
jest.resolver.cjs
nginx.conf
package.json 📦 chore: bump @librechat/agents to v3.4.2 and npm audit (#14702) 2026-08-08 12:24:06 -04:00
postcss.config.cjs
tailwind.config.cjs 🎨 feat: Add Versioned Theme Foundation (#14709) 2026-08-10 13:41:03 -04:00
tsconfig.json
vite.config.ts 🎨 refactor: adopt the @librechat/client design system (semantic color tokens + component migration) (#13879) 2026-08-06 09:15:17 -04:00