From 21ba3fb7cf4f8ccf35b07f0ff5e2e9cc90ad9eae Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Tue, 7 Jul 2026 10:56:15 +0200 Subject: [PATCH] fix: ease the edit-title height as it wraps instead of jumping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Long titles wrap to a second line (#33); the field's height — and the accent bar and cards below it — snapped to the new height. Apply the new floret-kit Modifier.animateContentSizeMotion() to the title field so the height eases on the M3 Expressive motion scheme (snapping under reduced motion), and bump the kit pin (cded442 -> 55ad536) to the commit adding it. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../de/jeanlucmakiola/calendula/ui/edit/EventEditScreen.kt | 4 ++++ floret-kit | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/de/jeanlucmakiola/calendula/ui/edit/EventEditScreen.kt b/app/src/main/java/de/jeanlucmakiola/calendula/ui/edit/EventEditScreen.kt index 16e5162..ae1f1e1 100644 --- a/app/src/main/java/de/jeanlucmakiola/calendula/ui/edit/EventEditScreen.kt +++ b/app/src/main/java/de/jeanlucmakiola/calendula/ui/edit/EventEditScreen.kt @@ -117,6 +117,7 @@ import de.jeanlucmakiola.calendula.domain.RecurringWriteScope import de.jeanlucmakiola.calendula.domain.SimpleRecurrence import de.jeanlucmakiola.calendula.domain.parseSimpleRecurrence import de.jeanlucmakiola.calendula.domain.toRRule +import de.jeanlucmakiola.floret.identity.animateContentSizeMotion import de.jeanlucmakiola.floret.identity.collapseExit import de.jeanlucmakiola.floret.identity.expandEnter import de.jeanlucmakiola.floret.identity.predictiveBack @@ -534,6 +535,9 @@ private fun EventEditContent( enabled = !locked, modifier = Modifier .fillMaxWidth() + // Ease the height change as the title wraps to another line + // instead of letting the accent bar + cards below jump. + .animateContentSizeMotion() .padding(vertical = 4.dp) .focusRequester(titleFocusRequester), ) diff --git a/floret-kit b/floret-kit index cded442..55ad536 160000 --- a/floret-kit +++ b/floret-kit @@ -1 +1 @@ -Subproject commit cded44207c916a9f713ad1f85544d56143590bdf +Subproject commit 55ad536513bb8903a097a2aff96c91aafbec9727