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, bottom: composerSize.value,
left: 12, left: 12,
// To give space for jump to bottom button // Leaves room for the jump to bottom button when it's shown
right: 72, right: scroll.atBottom ? 12 : 72,
child: MeasureSize( child: MeasureSize(
onChange: (size) => onChange: (size) =>
typingIndicatorSize.value = size.height, typingIndicatorSize.value = size.height,