Merge pull request #651 from pangeachat/account-for-sidebar

Account for sidebar
pull/1384/head
ggurdin 1 year ago committed by GitHub
commit b75abc1c63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -190,13 +190,14 @@ class MessageSelectionOverlayState extends State<MessageSelectionOverlay> {
),
);
final bool showDetails = Matrix.of(context)
final bool showDetails = (Matrix.of(context)
.store
.getBool(SettingKeys.displayChatDetailsColumn) ??
false;
false) &&
FluffyThemes.isThreeColumnMode(context) &&
widget.controller.room.membership == Membership.join;
return Expanded(
child: Stack(
return Stack(
children: [
AnimatedPositioned(
duration: FluffyThemes.animationDuration,
@ -212,6 +213,10 @@ class MessageSelectionOverlayState extends State<MessageSelectionOverlay> {
),
Align(
alignment: Alignment.bottomCenter,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Expanded(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
@ -219,11 +224,17 @@ class MessageSelectionOverlayState extends State<MessageSelectionOverlay> {
],
),
),
if (showDetails)
const SizedBox(
width: FluffyThemes.columnWidth,
),
],
),
),
Material(
child: OverlayHeader(controller: widget.controller),
),
],
),
);
}
}

Loading…
Cancel
Save