From b0490034e3659b732517d90aa4f6f20ba5857b29 Mon Sep 17 00:00:00 2001 From: ggurdin Date: Wed, 8 May 2024 14:30:54 -0400 Subject: [PATCH] remove hover menu from messages on web --- lib/pages/chat/events/message.dart | 130 +++++++++++++++-------------- 1 file changed, 66 insertions(+), 64 deletions(-) diff --git a/lib/pages/chat/events/message.dart b/lib/pages/chat/events/message.dart index ff206d2b0..568fe0997 100644 --- a/lib/pages/chat/events/message.dart +++ b/lib/pages/chat/events/message.dart @@ -574,70 +574,72 @@ class Message extends StatelessWidget { ), child: container, ), - Positioned( - left: ownMessage ? null : 48, - right: ownMessage ? 4 : null, - top: displayTime ? 38 : 0, - child: AnimatedScale( - duration: Duration( - milliseconds: - (FluffyThemes.animationDuration.inMilliseconds / 2) - .floor(), - ), - curve: FluffyThemes.animationCurve, - scale: !longPressSelect && hovered ? 1 : 0, - alignment: Alignment.center, - child: Material( - color: Theme.of(context) - .colorScheme - .secondaryContainer - .withOpacity(0.9), - elevation: - Theme.of(context).appBarTheme.scrolledUnderElevation ?? - 4, - borderRadius: BorderRadius.circular(AppConfig.borderRadius), - shadowColor: Theme.of(context).appBarTheme.shadowColor, - child: Row( - mainAxisSize: MainAxisSize.min, - children: [ - 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, - ), - ), - SizedBox( - width: 32, - height: 32, - child: IconButton( - icon: Icon( - Icons.more_vert, - size: 16, - color: Theme.of(context) - .colorScheme - .onTertiaryContainer, - ), - tooltip: L10n.of(context)!.select, - onPressed: () => onSelect(event), - ), - ), - ], - ), - ), - ), - ), + // #Pangea + // Positioned( + // left: ownMessage ? null : 48, + // right: ownMessage ? 4 : null, + // top: displayTime ? 38 : 0, + // child: AnimatedScale( + // duration: Duration( + // milliseconds: + // (FluffyThemes.animationDuration.inMilliseconds / 2) + // .floor(), + // ), + // curve: FluffyThemes.animationCurve, + // scale: !longPressSelect && hovered ? 1 : 0, + // alignment: Alignment.center, + // child: Material( + // color: Theme.of(context) + // .colorScheme + // .secondaryContainer + // .withOpacity(0.9), + // elevation: + // Theme.of(context).appBarTheme.scrolledUnderElevation ?? + // 4, + // borderRadius: BorderRadius.circular(AppConfig.borderRadius), + // shadowColor: Theme.of(context).appBarTheme.shadowColor, + // child: Row( + // mainAxisSize: MainAxisSize.min, + // children: [ + // 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, + // ), + // ), + // SizedBox( + // width: 32, + // height: 32, + // child: IconButton( + // icon: Icon( + // Icons.more_vert, + // size: 16, + // color: Theme.of(context) + // .colorScheme + // .onTertiaryContainer, + // ), + // tooltip: L10n.of(context)!.select, + // onPressed: () => onSelect(event), + // ), + // ), + // ], + // ), + // ), + // ), + // ), + // Pangea# ], ), ),