Skip to content

Commit

Permalink
chore: Follow up hovermenu
Browse files Browse the repository at this point in the history
  • Loading branch information
krille-chan committed Mar 30, 2024
1 parent c51fc60 commit f4196f3
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions lib/pages/chat/events/message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ class Message extends StatelessWidget {
Positioned(
left: ownMessage ? null : 48,
right: ownMessage ? 4 : null,
bottom: showReceiptsRow ? 28 : 0,
top: displayTime ? 38 : 0,
child: AnimatedScale(
duration: Duration(
milliseconds:
Expand All @@ -507,34 +507,37 @@ class Message extends StatelessWidget {
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
SizedBox(
width: 32,
height: 32,
child: IconButton(
icon: Icon(
Icons.check_circle_outline_outlined,
size: 16,
color: Theme.of(context)
.colorScheme
.onTertiaryContainer,
if (event.room.canSendDefaultMessages)
SizedBox(
width: 32,
height: 32,
child: IconButton(
icon: Icon(
Icons.reply_outlined,
size: 16,
color: Theme.of(context)
.colorScheme
.onTertiaryContainer,
),
tooltip: L10n.of(context)!.reply,
onPressed: event.room.canSendDefaultMessages
? () => onSwipe()
: null,
),
tooltip: L10n.of(context)!.select,
onPressed: () => onSelect(event),
),
),
SizedBox(
width: 32,
height: 32,
child: IconButton(
icon: Icon(
Icons.reply_outlined,
Icons.more_vert,
size: 16,
color: Theme.of(context)
.colorScheme
.onTertiaryContainer,
),
tooltip: L10n.of(context)!.reply,
onPressed: () => onSwipe(),
tooltip: L10n.of(context)!.select,
onPressed: () => onSelect(event),
),
),
],
Expand Down

0 comments on commit f4196f3

Please sign in to comment.