chore: Follow up hovermenu

krille/new-html-formatting rc1.19.0-3
krille-chan 2 years ago
parent c51fc600a2
commit f4196f38c3
No known key found for this signature in database

@ -484,7 +484,7 @@ class Message extends StatelessWidget {
Positioned( Positioned(
left: ownMessage ? null : 48, left: ownMessage ? null : 48,
right: ownMessage ? 4 : null, right: ownMessage ? 4 : null,
bottom: showReceiptsRow ? 28 : 0, top: displayTime ? 38 : 0,
child: AnimatedScale( child: AnimatedScale(
duration: Duration( duration: Duration(
milliseconds: milliseconds:
@ -507,34 +507,37 @@ class Message extends StatelessWidget {
child: Row( child: Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
SizedBox( if (event.room.canSendDefaultMessages)
width: 32, SizedBox(
height: 32, width: 32,
child: IconButton( height: 32,
icon: Icon( child: IconButton(
Icons.check_circle_outline_outlined, icon: Icon(
size: 16, Icons.reply_outlined,
color: Theme.of(context) size: 16,
.colorScheme color: Theme.of(context)
.onTertiaryContainer, .colorScheme
.onTertiaryContainer,
),
tooltip: L10n.of(context)!.reply,
onPressed: event.room.canSendDefaultMessages
? () => onSwipe()
: null,
), ),
tooltip: L10n.of(context)!.select,
onPressed: () => onSelect(event),
), ),
),
SizedBox( SizedBox(
width: 32, width: 32,
height: 32, height: 32,
child: IconButton( child: IconButton(
icon: Icon( icon: Icon(
Icons.reply_outlined, Icons.more_vert,
size: 16, size: 16,
color: Theme.of(context) color: Theme.of(context)
.colorScheme .colorScheme
.onTertiaryContainer, .onTertiaryContainer,
), ),
tooltip: L10n.of(context)!.reply, tooltip: L10n.of(context)!.select,
onPressed: () => onSwipe(), onPressed: () => onSelect(event),
), ),
), ),
], ],

Loading…
Cancel
Save