only reserve space for jump to bottom when it exists

This commit is contained in:
Henry Hiles 2026-10-21 15:09:41 -04:00
commit f5645db6ea
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -266,11 +266,12 @@ final class const RoomChat({
},
),
),
Positioned(
AnimatedPositioned(
duration: Durations.short4,
bottom: composerSize.value,
left: 12,
// To give space for jump to bottom button
right: 72,
// Leaves room for the jump to bottom button when it's shown
right: scroll.atBottom ? 12 : 72,
child: MeasureSize(
onChange: (size) =>
typingIndicatorSize.value = size.height,