Skip to content

Fix artist spotlight card name truncation#14400

Merged
raymondjacobson merged 8 commits into
mainfrom
cursor/bug-report-resolution-5e51
May 27, 2026
Merged

Fix artist spotlight card name truncation#14400
raymondjacobson merged 8 commits into
mainfrom
cursor/bug-report-resolution-5e51

Conversation

@cursor
Copy link
Copy Markdown
Contributor

@cursor cursor Bot commented May 26, 2026

Summary

  • Make UserLink names shrink and ellipsize correctly inside card/popover flex layouts.
  • Keep rendered user badges from shrinking so all badges remain visible next to truncated names.

Validation

  • npm run typecheck -w @audius/web
  • npm run lint -w @audius/web -- --quiet
Open in Web View Automation 

Co-authored-by: Ray Jacobson <raymondjacobson@users.noreply.github.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 26, 2026

⚠️ No Changeset found

Latest commit: c2d42af

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 26, 2026

🌐 Web preview ready

Preview URL: https://audius-web-preview-pr-14400.audius.workers.dev

Unique preview for this PR (deployed from this branch).
Workflow run

@raymondjacobson raymondjacobson marked this pull request as ready for review May 26, 2026 19:23
Co-authored-by: Ray Jacobson <raymondjacobson@users.noreply.github.com>
@pull-request-size pull-request-size Bot added size/M and removed size/S labels May 26, 2026
cursoragent and others added 3 commits May 26, 2026 19:39
Co-authored-by: Ray Jacobson <raymondjacobson@users.noreply.github.com>
Co-authored-by: Ray Jacobson <raymondjacobson@users.noreply.github.com>
UserCard now uses UserLink with `ellipses` + `popover` again instead of
re-implementing the name+badge layout inline. The UserLink and
UserBadges updates from this PR already make truncation work correctly
through the standard component path.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The popover branch used `display: inline-flex` + `width: 100%` on the
outer Flex container. That combination doesn't shrink children
reliably — flex items kept their natural content width and the
parent's overflow clipped the result instead of triggering ellipsis.

Switch to `direction='row'` + `w='100%'` (plain block-level flex), and
drop `display: inline-flex` on the ArtistPopover span in favor of
`display: flex`. Also collapse the redundant inner `<Text ellipses>`
wrapper when ellipses is already applied on the TextLink itself.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@pull-request-size pull-request-size Bot added size/M and removed size/S labels May 26, 2026
@raymondjacobson raymondjacobson merged commit 78ebafe into main May 27, 2026
13 checks passed
@raymondjacobson raymondjacobson deleted the cursor/bug-report-resolution-5e51 branch May 27, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants