From 719d42795602b6da795f52e9871706c5931c6295 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 4 Dec 2022 12:58:59 -0500 Subject: [PATCH] Truncate long nav bar/rail items Fixes #8670 --- app/src/main/java/eu/kanade/tachiyomi/ui/home/HomeScreen.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/home/HomeScreen.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/home/HomeScreen.kt index a6ac722e0..1f422b571 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/home/HomeScreen.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/home/HomeScreen.kt @@ -29,6 +29,7 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.res.pluralStringResource import androidx.compose.ui.semantics.contentDescription import androidx.compose.ui.semantics.semantics +import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.util.fastForEach import cafe.adriel.voyager.core.screen.Screen import cafe.adriel.voyager.navigator.LocalNavigator @@ -178,6 +179,8 @@ object HomeScreen : Screen { Text( text = tab.options.title, style = MaterialTheme.typography.labelLarge, + maxLines = 1, + overflow = TextOverflow.Ellipsis, ) }, alwaysShowLabel = true, @@ -204,6 +207,8 @@ object HomeScreen : Screen { Text( text = tab.options.title, style = MaterialTheme.typography.labelLarge, + maxLines = 1, + overflow = TextOverflow.Ellipsis, ) }, alwaysShowLabel = true,