fix: token badge text wrapping on long model names

Added maxLines=1 and softWrap=false to prevent "0 / 1M" from breaking
into two lines when the top bar is compressed by a long model name.
This commit is contained in:
Bruno Deanoz 2026-06-24 03:02:33 +02:00
parent bb53b24655
commit 25fbb17d18

View file

@ -437,6 +437,8 @@ fun TokenBadge(used: Int, contextLength: Int, modifier: Modifier = Modifier) {
color = cs.onSurfaceVariant,
fontSize = 12.sp,
fontWeight = FontWeight.Medium,
maxLines = 1,
softWrap = false,
)
}
}