From 3eab4e6b9f7be0266b93d1c46ca23e7d449fef94 Mon Sep 17 00:00:00 2001 From: Secozzi Date: Thu, 11 Jul 2024 22:40:51 +0200 Subject: [PATCH] Fix badge count getting cut off on tab title Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com> --- .../tachiyomi/presentation/core/components/material/Tabs.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/presentation-core/src/main/java/tachiyomi/presentation/core/components/material/Tabs.kt b/presentation-core/src/main/java/tachiyomi/presentation/core/components/material/Tabs.kt index f74ff909c..cf6c20da8 100644 --- a/presentation-core/src/main/java/tachiyomi/presentation/core/components/material/Tabs.kt +++ b/presentation-core/src/main/java/tachiyomi/presentation/core/components/material/Tabs.kt @@ -6,6 +6,7 @@ import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.sp import tachiyomi.presentation.core.components.Pill @@ -24,6 +25,7 @@ fun TabText( text = text, maxLines = 1, overflow = TextOverflow.Ellipsis, + modifier = Modifier.weight(1f, fill = false), ) if (badgeCount != null) { Pill(