-
Notifications
You must be signed in to change notification settings - Fork 354
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description:
On mobile viewports (tested with multiple devices via Chrome DevTools device toolbar), the attachment filename and file size text overlap each other, making both unreadable.
Steps to reproduce:
- Open EmbeddedChat Storybook (yarn storybook)
- Log in and navigate to a channel with file attachments
- Open the story in a new tab -> Open Chrome DevTools -> Toggle device toolbar -> Select Mobile Device
Expected behavior:
Filename (image.png) and file size (60.23 kB) should be clearly readable, either side by side or properly stacked with spacing.
Actual behavior:
The filename and file size text render on top of each other, making both unreadable. This happens on all mobile device presets (iPhone SE, iPhone XR, Pixel, etc).
Screenshots
root cause
In AttachmentMetadata.js, the inner flex container switches to flex-direction: column at ≤420px with only 4px gap. The title is truncated via JS substring(0, 22) instead of CSS text-overflow, and the elements lack proper white-space control, causing visual overlap.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working