fix: ease the edit-title height as it wraps instead of jumping
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) <noreply@anthropic.com>
This commit is contained in:
@@ -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),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user