fix: prevent request regeneration button from altering message height (#4964)

This commit is contained in:
ggurdin 2025-12-29 14:49:11 -05:00 committed by GitHub
parent aad45e18cf
commit faf8bd008c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
),
),
),
),
],
),
);