fix: prevent request regeneration button from altering message height (#4964)
This commit is contained in:
parent
aad45e18cf
commit
faf8bd008c
1 changed files with 21 additions and 23 deletions
|
|
@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue