Show as much of a month event title as fits (#164)
Drop the ellipsis from month-view chips and let the title run to the chip edge. softWrap goes off with it, or a clipped line would break at the last whole word and show less title than before.
This commit is contained in:
@@ -2356,7 +2356,12 @@ private fun MonthBar(
|
||||
text = title,
|
||||
style = MaterialTheme.typography.labelSmall,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
// No "…" (#164): the chip is narrow enough that the ellipsis costs a
|
||||
// couple of readable characters. softWrap is off with it — left on,
|
||||
// a clipped line breaks at the last whole word instead of running to
|
||||
// the chip's edge, which reads as *less* title, not more.
|
||||
overflow = TextOverflow.Clip,
|
||||
softWrap = false,
|
||||
color = eventInk(fill),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user