Skip to content

fix(chat): link-only messages collapse to the artwork - #14782

Merged
dylanjeffers merged 1 commit into
mainfrom
fix/chat-link-only-bubble-width
Nov 13, 2026
Merged

dylanjeffers merged 1 commit into
mainfrom
fix/chat-link-only-bubble-width

Conversation

@dylanjeffers

Copy link
Copy Markdown
Contributor

Since #14749 (group DMs), a message that is only a track or playlist link renders as a narrow card showing just the artwork and repost count, in 1:1 chats too. Messages with text plus a link look fine because the text sets the bubble's width. Prod predates #14749, so it only shows on RC.

Cause: #14749 wrapped every bubble in a Flex row so the group sender's avatar can sit beside it. That row is a shrink-to-fit flex item of the message column, so the link-only bubble's width: min(448px, 100%) resolves against the row's content width instead of the list.

Fix: the row is now w='100%', justified flex-end for your own messages and flex-start for others. Text bubbles keep their content width (max-width is unchanged).

Checked: in a static reproduction of the bubble CSS, the current layout gives the link-only bubble 354px (and less with the real unfurl contents), and the fix restores 448px, matching the pre-#14749 layout. Author bubbles stay right-aligned and a text-only bubble keeps its 172px content width. Not yet checked in the running app: please look at a link-only message on RC after merge.

🤖 Generated with Claude Code

#14749 wrapped each message bubble in a row for the group sender avatar.
That row shrinks to fit, so a link-only bubble's min(448px, 100%) width had
nothing to resolve against and the track or playlist card collapsed to its
artwork. Make the row full width and justify it by author.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f78c256

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

@dylanjeffers
dylanjeffers merged commit 29451dc into main Nov 13, 2026
18 checks passed
@dylanjeffers
dylanjeffers deleted the fix/chat-link-only-bubble-width branch November 13, 2026 00:09
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.

1 participant