From f5645db6ea3e1427d4f3dfea959160627bca652e Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Wed, 21 Oct 2026 15:09:41 -0400 Subject: [PATCH] only reserve space for jump to bottom when it exists --- lib/widgets/room_chat/room_chat.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/widgets/room_chat/room_chat.dart b/lib/widgets/room_chat/room_chat.dart index 25a4ac2..7e807da 100644 --- a/lib/widgets/room_chat/room_chat.dart +++ b/lib/widgets/room_chat/room_chat.dart @@ -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,