From 67850e8e4b5fa5fe01ee1f27f0b7a490f3b23811 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Fri, 10 Jun 2022 10:40:22 -0700 Subject: [PATCH] Fix message view title padding in doublecol view --- lib/views/messageview.dart | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/views/messageview.dart b/lib/views/messageview.dart index 7c029a11..e1281651 100644 --- a/lib/views/messageview.dart +++ b/lib/views/messageview.dart @@ -138,8 +138,16 @@ class _MessageViewState extends State { }) : null, appBar: AppBar( - // setting leading to null makes it do the default behaviour; container() hides it - leading: Provider.of(context).uiColumns(appState.isLandscape(context)).length > 1 ? Container() : null, + // setting leading(Width) to null makes it do the default behaviour; container() hides it + leadingWidth: Provider.of(context).uiColumns(appState.isLandscape(context)).length > 1 ? 0 : null, + leading: Provider.of(context).uiColumns(appState.isLandscape(context)).length > 1 + ? Container( + padding: EdgeInsets.zero, + margin: EdgeInsets.zero, + width: 0, + height: 0, + ) + : null, title: Row(children: [ ProfileImage( imagePath: Provider.of(context).isExperimentEnabled(ImagePreviewsExperiment) -- 2.25.1