Skip to content

fix(chat): keep the conversation title on one line - #1603

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/chat-title-ellipsis
Sep 28, 2026
Merged

bmc08gt merged 1 commit into
code/cashfrom
fix/chat-title-ellipsis

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator

A long chat name wrapped inside the conversation bar. The bar is a fixed 56dp, so the second and third lines were clipped rather than growing the bar. The title Text and the group member-count line in ChatTopBar had no maxLines; both now take maxLines = 1 and TextOverflow.Ellipsis.

The title keeps weight(1f, fill = false), so a long name loses its tail and the mute bell stays beside it.

  • ConversationTitleBarTest gains a long title stays on one line, which checks the laid-out line count of a muted group's long title. Before this change it laid out on 3 lines.
  • That class now runs under @GraphicsMode(NATIVE). In legacy mode text has no real width, so the long title fit on one line with or without the fix.
  • rendersLongGroupTitleBar and rendersLongNameTopBar write muted short and long bars to build/screenshots/ next to the existing top-bar renders.

Section C of the chat polish spec. iOS's half of it, the title filling the width after the back button, is a separate change.

The title and the group member-count line had no maxLines, so a long name
wrapped inside the fixed 56dp bar and its second and third lines were
clipped. Both now ellipsize on one line. The title keeps its
weight(1f, fill = false), so it still gives up width to the mute bell.

ConversationTitleBarTest moves to native graphics: under the legacy mode
text has no real width, and a long title laid out on one line with or
without the fix.
@bmc08gt bmc08gt self-assigned this Sep 28, 2026
@github-actions github-actions Bot added the type: fix Bug fix label Sep 28, 2026
@bmc08gt
bmc08gt merged commit 06663ac into code/cash Sep 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant