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

Loading…
Cancel
Save