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:
parent
bb53b24655
commit
25fbb17d18
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue