Skip to content

Stabilize own-message hover toolbar position; align emphasis to hover row#921

Merged
mremond merged 1 commit into
mainfrom
mr/nice-keller-27b75b
Jul 8, 2026
Merged

Stabilize own-message hover toolbar position; align emphasis to hover row#921
mremond merged 1 commit into
mainfrom
mr/nice-keller-27b75b

Conversation

@mremond

@mremond mremond commented Jul 8, 2026

Copy link
Copy Markdown
Member

The own-message tint hugs its content (w-fit), and the hover toolbar was anchored inside that box — so a short own message (e.g. "dommage") pulled its action menu far from the row edge, and the emphasis bottom floated a few px above the hover-row highlight.

Toolbar position — moved the toolbar into a full-width positioning column that wraps the hugging tint box, so it pins to the row's right edge for every message regardless of bubble width (now matching incoming rows, all toolbars align in one right column).

Emphasis bottom — extended .message-own-tint-end down through the row's group-end padding so the emphasis bottom meets the hover-row highlight. padding-bottom paints the wash lower; an equal negative margin-bottom cancels it so row heights (and the virtualizer's measurements) are unchanged. Mirrors .message-group-end, including the compact-density override.

…ver row

The own-message tint hugs its content (`w-fit`), and the hover toolbar was
anchored inside that box — so a short own message pulled its action menu far
from the row edge, and the emphasis bottom floated a few px above the hover-row
highlight.

- Move the toolbar into a full-width positioning column that wraps the hugging
  tint box, so it pins to the row's right edge for every message regardless of
  bubble width (matching incoming rows).
- Extend `.message-own-tint-end` down through the row's group-end padding so the
  emphasis bottom meets the hover-row highlight. padding-bottom paints the wash
  lower; an equal negative margin-bottom cancels it so row heights (and the
  virtualizer's measurements) are unchanged. Mirrors `.message-group-end`,
  including the compact-density override.

Adds regression tests: toolbar anchoring (DOM structure) and the CSS mirror
invariant between `.message-own-tint-end` and `.message-group-end`.
@mremond mremond added this to the 0.17.1 milestone Jul 8, 2026
@mremond mremond merged commit e80d8ec into main Jul 8, 2026
3 checks passed
@mremond mremond deleted the mr/nice-keller-27b75b branch July 8, 2026 15:04
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