From bbf58178052ee609cd1538b93cbf09c7a8dae8e8 Mon Sep 17 00:00:00 2001 From: arkon Date: Fri, 30 Dec 2022 22:31:22 -0500 Subject: [PATCH] Allow 2 lines for tracker status text Fixes #8805 --- .../java/eu/kanade/presentation/manga/TrackInfoDialogHome.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/presentation/manga/TrackInfoDialogHome.kt b/app/src/main/java/eu/kanade/presentation/manga/TrackInfoDialogHome.kt index 7c55bf7c67..5810c437a6 100644 --- a/app/src/main/java/eu/kanade/presentation/manga/TrackInfoDialogHome.kt +++ b/app/src/main/java/eu/kanade/presentation/manga/TrackInfoDialogHome.kt @@ -10,6 +10,7 @@ import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.IntrinsicSize import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.WindowInsets +import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding @@ -240,12 +241,14 @@ private fun TrackDetailsItem( modifier = modifier .clickable(onClick = onClick) .alpha(if (text == null) UnsetStatusTextAlpha else 1f) + .fillMaxHeight() .padding(12.dp), contentAlignment = Alignment.Center, ) { Text( text = text ?: placeholder, - maxLines = 1, + maxLines = 2, + overflow = TextOverflow.Ellipsis, style = MaterialTheme.typography.bodyMedium, ) }