Merge pull request #706 from krille-chan/braid/message-position-desktop

fix: message bubble position on desktop devices
This commit is contained in:
Krille-chan 2023-12-01 18:34:50 +01:00 committed by GitHub
commit aedc1c4123
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -368,7 +368,8 @@ class Message extends StatelessWidget {
container = Opacity(opacity: 0.4, child: container);
}
return Swipeable(
return Center(
child: Swipeable(
key: ValueKey(event.eventId),
background: const Padding(
padding: EdgeInsets.symmetric(horizontal: 12.0),
@ -394,6 +395,7 @@ class Message extends StatelessWidget {
child: container,
),
),
),
);
}
}