Skip to content

fix(issues): Center short ID next to project avatar in stream - #132276

Open
scttcper wants to merge 2 commits into
masterfrom
scttcper/center-stream-short-id
Open

scttcper wants to merge 2 commits into
masterfrom
scttcper/center-stream-short-id

Conversation

@scttcper

@scttcper scttcper commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

The short ID in the issue stream sits a little high next to the project avatar. Rubik's line box is balanced for mixed case, so all-caps text ends up above center. This switches the ID to Text and adds trim="cap", which trims to the cap height so the letters center on the avatar. With ellipsis it only clips sideways so nothing gets cut off.

Same Text change is in #132284, which uses it for the issue header.

red line is the vertical center

old font, before #130701

old font zoomed

new font, from #130701

new font zoomed

new font + text-box trim

new font with text-box trim zoomed

The short ID in the issue stream sits a little high next to the project
avatar. Rubik's line box is balanced for mixed case text, so all-caps IDs
end up above center. Trimming the text box to cap height lines the
letters up with the avatar.

overflow: hidden would clip the tops of the letters now that the box is
only cap height, so this clips horizontally only and keeps the ellipsis.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 23, 2026
@sentry

sentry Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Sentry Snapshot Testing

Name Added Removed Changed Renamed Unchanged Skipped Status
sentry-frontend
sentry-frontend
0 0 16 0 1054 0 ⏳ Needs approval

⚙️ sentry-frontend Snapshot Settings

@scttcper
scttcper marked this pull request as ready for review November 23, 2026 22:56
@scttcper
scttcper requested review from a team as code owners November 23, 2026 22:56
@scttcper
scttcper requested a review from a team November 23, 2026 22:56
Comment on lines +32 to +36
/* Center the cap height on the avatar instead of Rubik's lopsided line box */
text-box: trim-both cap alphabetic;
/* Only clip horizontally so glyphs can paint past the trimmed box */
overflow-x: clip;
min-width: 0;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could also move to Text from @sentry/scraps/text which sets text-box trim by default 😉

Swap the hand rolled text-box styles for Text. Adds trim="cap" to Text,
which trims to the cap height and baseline, and only clips sideways with
ellipsis so nothing below the baseline gets cut off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Story previews

Preview the stories changed in this PR on the Vercel deployment:

Preview deployment: https://sentry-jk1s8vhhj.sentry.dev

@scttcper
scttcper requested a review from natemoo-re November 23, 2026 23:06

This branch was successfully deployed

1 active deployment
Preview — de096add Deployed Nov 23, 2026 by vercel[bot]
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.

2 participants