Skip to content

fix(react): keep labels next to truncated title in issue/project rows#20291

Merged
boojack merged 1 commit into
mainfrom
fix-ellipsis-text-flex-1
May 11, 2026
Merged

fix(react): keep labels next to truncated title in issue/project rows#20291
boojack merged 1 commit into
mainfrom
fix-ellipsis-text-flex-1

Conversation

@boojack

@boojack boojack commented May 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Follow-up to feat(react): hover tooltip for truncated names in list tables #20284. After adopting EllipsisText on the My Issues row and the Projects table, the title element kept its min-w-0 flex-1, so it consumed all available width and pushed sibling labels / the archived badge to the far right edge of the row.
  • Drops flex-1 from both call sites. The title now sizes to its content (labels sit next to it) and still shrinks + truncates when the row overflows, because min-w-0 is preserved on a flex item that already defaults to flex-shrink: 1.

Test plan

  • pnpm --dir frontend type-check
  • pnpm --dir frontend check (lint + Biome + i18n + layering + locale sort)
  • Manual: My Issues — short title → labels render right next to title; long title → title truncates with hover tooltip, labels still adjacent
  • Manual: Projects table — archived project → "Archived" badge sits next to the project name instead of at the column's right edge; long name still truncates

🤖 Generated with Claude Code

Removes flex-1 from the title element wrapping EllipsisText in the My
Issues row and the Projects table name cell. flex-1 made the title
consume all available space, pushing sibling labels and the archived
badge to the far edge instead of sitting next to the title. With just
min-w-0, the title sizes to its content and still shrinks/truncates
when the row overflows.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@boojack boojack requested a review from a team as a code owner May 11, 2026 09:58
@cla-bot cla-bot Bot added the cla-signed label May 11, 2026
@sonarqubecloud

Copy link
Copy Markdown

@boojack boojack enabled auto-merge (squash) May 11, 2026 10:02
@boojack boojack merged commit dd181a2 into main May 11, 2026
16 checks passed
@boojack boojack deleted the fix-ellipsis-text-flex-1 branch May 11, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants