From ec0cf16b96460efb1906c0892dd7fafbeb53b8a0 Mon Sep 17 00:00:00 2001 From: Shinokuni Date: Tue, 27 Feb 2024 19:13:03 +0100 Subject: [PATCH] Set TimelineTab appBar title maxLines to 1 --- .../java/com/readrops/app/compose/timelime/TimelineTab.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/appcompose/src/main/java/com/readrops/app/compose/timelime/TimelineTab.kt b/appcompose/src/main/java/com/readrops/app/compose/timelime/TimelineTab.kt index faf7febf..8c867c9f 100644 --- a/appcompose/src/main/java/com/readrops/app/compose/timelime/TimelineTab.kt +++ b/appcompose/src/main/java/com/readrops/app/compose/timelime/TimelineTab.kt @@ -28,6 +28,7 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource +import androidx.compose.ui.text.style.TextOverflow import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.paging.LoadState import androidx.paging.compose.LazyPagingItems @@ -155,7 +156,9 @@ object TimelineTab : Tab { FilterType.STARS_FILTER -> stringResource(R.string.favorites) FilterType.NO_FILTER -> stringResource(R.string.articles) FilterType.NEW -> stringResource(R.string.new_articles) - } + }, + maxLines = 1, + overflow = TextOverflow.Ellipsis ) }, navigationIcon = {