Skip to content

Commit 40c9148

Browse files
committed
fix(ui): show only count in multiselect top bar title
Long localized strings like "ausgewählt" caused the title to wrap onto a second line, making the top bar taller than intended. Display the selection count as a bare number instead; the close button already implies selection mode. Preserves selection_count string resources for card accessibility labels.
1 parent 80b7dbf commit 40c9148

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • android/app/src/main/java/dev/dettmer/simplenotes/ui/main

android/app/src/main/java/dev/dettmer/simplenotes/ui/main/MainScreen.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,9 @@ private fun SelectionTopBar(
664664
},
665665
title = {
666666
Text(
667-
text = stringResource(R.string.selection_count, selectedCount),
668-
style = MaterialTheme.typography.titleLarge
667+
text = selectedCount.toString(),
668+
style = MaterialTheme.typography.titleLarge,
669+
maxLines = 1
669670
)
670671
},
671672
actions = {

0 commit comments

Comments
 (0)