From faf8bd008c95dbe00a9bc25d44f27b82418496af Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Mon, 29 Dec 2025 14:49:11 -0500 Subject: [PATCH] fix: prevent request regeneration button from altering message height (#4964) --- lib/pages/chat/events/message.dart | 44 ++++++++++++++---------------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/lib/pages/chat/events/message.dart b/lib/pages/chat/events/message.dart index 5ac3b24ea..d46fc4fc9 100644 --- a/lib/pages/chat/events/message.dart +++ b/lib/pages/chat/events/message.dart @@ -1042,31 +1042,29 @@ class Message extends StatelessWidget { ], ), ), - if (canRefresh) - Padding( - padding: const EdgeInsets.all(16.0), - child: CircleAvatar( - radius: (IconTheme.of(context).size ?? - 24.0) - - 4, - backgroundColor: theme - .colorScheme.surface - .withAlpha(128), - child: IconButton( - tooltip: L10n.of(context) - .requestRegeneration, - icon: const Icon( - Icons.refresh_outlined, - ), - onPressed: () => - controller.requestRegeneration( - event.eventId, - ), - ), - ), - ), ], ), + if (canRefresh) + Positioned( + right: 8.0, + top: 8.0, + child: CircleAvatar( + radius: 20.0, + backgroundColor: theme.colorScheme.surface + .withAlpha(128), + child: IconButton( + tooltip: + L10n.of(context).requestRegeneration, + icon: const Icon( + Icons.refresh_outlined, + ), + onPressed: () => + controller.requestRegeneration( + event.eventId, + ), + ), + ), + ), ], ), );