Keep tab badges visible when the tab label is too long (#4178)

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
This commit is contained in:
Sahil
2026-10-26 02:27:40 +06:00
committed by GitHub
co-authored by AntsyLich
parent 4310a224d4
commit 7a5632c013
@@ -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
@@ -19,6 +20,7 @@ fun TabText(text: String, badgeCount: Int? = null) {
) {
Text(
text = text,
modifier = Modifier.weight(1f, fill = false),
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)