RocketChat / RocketChat/EmbeddedChat
bug: attachment metadata text overlaps on mobile viewports
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 165
- Forks
- 381
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 1
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with AttachmentMetadata.js and reproduce the issue in EmbeddedChat Storybook using yarn storybook and a mobile viewport in Chrome DevTools. Verify that the attachment filename and file size remain readable without overlap across the listed mobile device presets.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100