RocketChat / RocketChat/EmbeddedChat

bug: attachment metadata text overlaps on mobile viewports

Open Beginner friendly
#1,194 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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:
  1. Open EmbeddedChat Storybook (yarn storybook)
  2. Log in and navigate to a channel with file attachments
  3. 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
Image
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.