chore: Follow up desktop message popupmenu

This commit is contained in:
Krille 2023-12-29 10:02:50 +01:00
commit 504fccc98f
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
3 changed files with 16 additions and 22 deletions

View file

@ -343,10 +343,9 @@ class Message extends StatelessWidget {
},
);
Widget container;
if (event.hasAggregatedEvents(timeline, RelationshipTypes.reaction) ||
displayTime ||
selected ||
displayReadMarker) {
final showReceiptsRow =
event.hasAggregatedEvents(timeline, RelationshipTypes.reaction);
if (showReceiptsRow || displayTime || selected || displayReadMarker) {
container = Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment:
@ -379,7 +378,7 @@ class Message extends StatelessWidget {
),
),
row,
if (event.hasAggregatedEvents(timeline, RelationshipTypes.reaction))
if (showReceiptsRow)
Padding(
padding: EdgeInsets.only(
top: 4.0,
@ -454,8 +453,9 @@ class Message extends StatelessWidget {
child: container,
),
Positioned(
left: 4,
bottom: 4,
left: ownMessage ? null : 48,
right: ownMessage ? 4 : null,
bottom: showReceiptsRow ? 28 : 0,
child: AnimatedScale(
duration: Duration(
milliseconds:

View file

@ -13,7 +13,7 @@ class MessagePopupMenuButton extends StatelessWidget {
required this.event,
required this.onReply,
required this.onSelect,
this.height = 38,
this.height = 32,
super.key,
});
@ -24,6 +24,7 @@ class MessagePopupMenuButton extends StatelessWidget {
height: height,
child: PopupMenuButton(
iconSize: height / 2,
icon: const Icon(Icons.expand_more_outlined),
itemBuilder: (context) => [
PopupMenuItem(
onTap: onSelect,