Skip to content

fix(issues): Anchor issue preview hovercard to the visible title - #121919

Draft
ChrisandraVaz wants to merge 1 commit into
masterfrom
cv/issues/hovercard-anchor-overflow
Draft

fix(issues): Anchor issue preview hovercard to the visible title#121919
ChrisandraVaz wants to merge 1 commit into
masterfrom
cv/issues/hovercard-anchor-overflow

Conversation

@ChrisandraVaz

@ChrisandraVaz ChrisandraVaz commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Long issue titles get truncated, but the hovercard anchored to the title's full untruncated width — so the card landed ~226px past where the text visually ends, looking detached from its row.

The trigger is now inline-block with the truncation moved onto it, so it reports the width you can actually see. Plain inline-block would have undone #79570, which used inline to get the ellipsis working.

Before

image

After

Affects the issue stream, trace drawer, feedback crash reports, similar issues, and detector open periods. Bookmarked issues are still off by the star's width (~17px).

The hovercard positions itself against the wrapper useHoverOverlay puts
around the trigger. That wrapper carries max-width: 100%, but it was
display: inline, where max-width does nothing -- so on a title truncated
by an ancestor its layout box ran the full untruncated width and the
hovercard landed out past the visible edge. Measured 226px adrift on a
stream row whose title cuts off mid-path.

Switching the wrapper to inline-block alone would regress #79570, which
set inline deliberately so long titles ellipsize. Moving the truncation
onto the wrapper keeps both: it clips and renders the ellipsis itself,
and reports a box that stops where the title stops.

vertical-align is pinned because overflow: hidden on an inline-block
moves the baseline to the bottom margin edge, which shifts the title
against the bookmark icon.

Affects every surface rendering a group title with a preview: the issue
stream, trace drawer, feedback crash reports, similar issues, and
detector open periods.
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 13, 2026
@linear-code

linear-code Bot commented Aug 13, 2026

Copy link
Copy Markdown

DE-1514

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant