Skip to content

fix: prevent message timestamp overlap on small screens (#1257) - #1391

Open
rohanesor wants to merge 1 commit into
RocketChat:developfrom
rohanesor:fix/1257-timestamp-overlap
Open

rohanesor wants to merge 1 commit into
RocketChat:developfrom
rohanesor:fix/1257-timestamp-overlap

Conversation

@rohanesor

@rohanesor rohanesor commented Oct 16, 2026 •

Copy link
Copy Markdown

Fixes #1257\n\n## Problem\nOn narrow screens, the message header (name + userActions + timestamp) is a single non-wrapping flex row. When the combined text is wider than the viewport, the timestamp overlaps or is pushed outside the message bubble.\n\n## Fix\n- Adds flex-wrap: wrap to the header.\n- Below 480px, aligns header items to the top and forces the timestamp onto its own row with flex-basis: 100% and removes its left margin.\n\nThis keeps the same visual layout on wide screens while preventing overlap on small screens.\n\n## Verification\n- yarn lint passes (pre-existing warnings only).\n- prettier --check passes.\n\n## Screenshot (375px viewport)\nbefore-after-timestamp-overlap\n\n## Prior art\nThis takes the same CSS approach as the earlier #1258 by @priyapathak39, which was closed unmerged due to unrelated files being included in the PR. This change is scoped to Message.styles.js only.

)

Adds flex-wrap to the message header and forces the timestamp onto its
own row below 480px, avoiding overlap with the username/action text on
narrow viewports.

Fixes RocketChat#1257

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Message timestamp overlaps on small screens

1 participant