Browse Source

Show ellipsis in longer OSS library names (#9780)

Show ellipsis in longer OSS library names.
Alessandro Jean 1 year ago
parent
commit
dfbbbadfac

+ 2 - 0
app/src/main/java/eu/kanade/presentation/more/settings/screen/about/OpenSourceLibraryLicenseScreen.kt

@@ -15,6 +15,7 @@ import androidx.compose.runtime.Composable
 import androidx.compose.ui.Modifier
 import androidx.compose.ui.platform.LocalUriHandler
 import androidx.compose.ui.res.stringResource
+import androidx.compose.ui.text.style.TextOverflow
 import androidx.compose.ui.unit.dp
 import androidx.compose.ui.viewinterop.AndroidView
 import androidx.core.text.HtmlCompat
@@ -45,6 +46,7 @@ class OpenSourceLibraryLicenseScreen(
                         Text(
                             text = name,
                             maxLines = 1,
+                            overflow = TextOverflow.Ellipsis,
                         )
                     },
                     navigationIcon = {