From a481ddbd102e14b4cecc4ba56bf78c67c672a944 Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Mon, 10 Aug 2026 18:55:01 +0200 Subject: [PATCH] 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. --- CHANGELOG.md | 8 ++++++++ .../de/jeanlucmakiola/calendula/ui/month/MonthScreen.kt | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 399b5d9..5da84d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed +- Month-view event titles no longer end in an ellipsis. The "…" took the width + of a couple of characters and told you nothing you couldn't already see, so + the title now simply runs to the edge of its chip — a few more letters per + cell, which is often the difference between two events you can tell apart and + two you can't ([#164]). + ## [2.19.1] — 2026-08-11 ### Added @@ -1414,3 +1421,4 @@ automatically, with zero telemetry and no internet permission. [#123]: https://codeberg.org/jlmakiola/calendula/issues/123 [#163]: https://codeberg.org/jlmakiola/calendula/issues/163 [#173]: https://codeberg.org/jlmakiola/calendula/issues/173 +[#164]: https://codeberg.org/jlmakiola/calendula/issues/164 diff --git a/app/src/main/java/de/jeanlucmakiola/calendula/ui/month/MonthScreen.kt b/app/src/main/java/de/jeanlucmakiola/calendula/ui/month/MonthScreen.kt index ffcccf6..4698cdc 100644 --- a/app/src/main/java/de/jeanlucmakiola/calendula/ui/month/MonthScreen.kt +++ b/app/src/main/java/de/jeanlucmakiola/calendula/ui/month/MonthScreen.kt @@ -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), ) }