Skip to content

Fix document filename truncation in conversation bubbles - #15092

Open
ketutaguswikananda22 wants to merge 1 commit into
signalapp:mainfrom
ketutaguswikananda22:fix/document-filename-visibility
Open

ketutaguswikananda22 wants to merge 1 commit into
signalapp:mainfrom
ketutaguswikananda22:fix/document-filename-visibility

Conversation

@ketutaguswikananda22

Copy link
Copy Markdown

Summary

Improves document filename visibility in conversation bubbles by allowing filenames to wrap onto up to two lines instead of being restricted to a single line.

In detailed mode, filenames remain unrestricted by the two-line limit.

Addresses document filename visibility reported in #15088

Changes

  • Update DocumentView to display up to two filename lines in conversation bubbles.
  • Preserve unrestricted filename display in detailed mode.
  • Add Robolectric regression tests covering short filenames, long filenames, ellipsis, detailed mode, and switching between display modes.

Testing

  • :Signal-Android:assemblePlayProdDebug — BUILD SUCCESSFUL
  • :Signal-Android:testPlayProdDebugUnitTest --tests "org.thoughtcrime.securesms.components.DocumentViewTest" — 5 tests passed
  • git diff --cached --check — no whitespace errors
  • Manual verification in a registered Signal conversation — not performed

Related issue

#15088

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.

2 participants