Skip to content

fix(queue): keep the "Next up" title on one line - #2973

Open
ismael-ares wants to merge 1 commit into
PixelPlayerHQ:masterfrom
ismael-ares:fix/queue-header-title-wrap
Open

ismael-ares wants to merge 1 commit into
PixelPlayerHQ:masterfrom
ismael-ares:fix/queue-header-title-wrap

Conversation

@ismael-ares

Copy link
Copy Markdown

The "Next up" title in the queue sheet is laid out in a weighted column next to the queue source badge (up to 190dp). Longer translations don't fit, and Compose breaks the word across lines: Spanish "A continuación" renders as "A / continuaci / ón", and German "Als nächstes" wraps to two lines and pushes the list down. It's most visible with a long queue source name (e.g. a shuffled playlist).

Changes (QueueHeader in QueueBottomSheet.kt)

  • Keep the title on a single line and let it shrink to fit (TextAutoSize.StepBased, down to 20sp) instead of wrapping.
  • Cap the title at 60% of the header width and give the remaining space to the source badge, which already ellipsizes its label.

Before / after (Pixel 10 emulator, API 37)

Spanish, with a shuffled playlist as the queue source:

Before / after, Spanish

German:

Before / after, German

All app locales and larger font scales (after)

All locales

Font scale 130% and 200%

Tested

  • All 12 app locales (en, es, de, fr, in, it, ko, nb, ru, tr, zh-CN, ar/RTL): the title fits on one line in every one of them.
  • Font scale 130%: fits on one line in es/de.
  • Font scale 200%: the title is ellipsized ("A continuac…") instead of being broken mid-word over three lines as it was before. Song titles in the list are ellipsized the same way at that size.

The queue header title used headlineLarge in a weighted column next to the
source badge (up to 190dp). Longer translations such as Spanish
"A continuación" did not fit and were broken mid-word across lines.

Keep the title on a single line and let it shrink to fit (auto-size down
to 20sp), cap it at 60% of the header width, and give the remaining space
to the source badge, which already ellipsizes its label.
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.

1 participant