From 5f0e453d806260412d3497502186711033f6099c Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 27 Sep 2021 15:28:03 +0300 Subject: [PATCH] Adjust UI --- lib/redux/app/app_actions.dart | 4 ++++ lib/ui/app/main_screen.dart | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/redux/app/app_actions.dart b/lib/redux/app/app_actions.dart index 1f2b36a05..3a0a86caf 100644 --- a/lib/redux/app/app_actions.dart +++ b/lib/redux/app/app_actions.dart @@ -426,6 +426,10 @@ void viewEntityById({ store.dispatch(ClearPreviewStack()); } + if (state.prefState.isDesktop && !state.prefState.isPreviewVisible) { + store.dispatch(TogglePreviewSidebar()); + } + if (filterEntity != null && (uiState.filterEntityType != filterEntity.entityType || uiState.filterEntityId != filterEntity.id)) { diff --git a/lib/ui/app/main_screen.dart b/lib/ui/app/main_screen.dart index 17e9bec9d..05b00aada 100644 --- a/lib/ui/app/main_screen.dart +++ b/lib/ui/app/main_screen.dart @@ -694,7 +694,12 @@ class EntityScreens extends StatelessWidget { child: Column( children: [ if (isFullScreen) topFilterChild, - Expanded(child: child), + Expanded( + child: AppBorder( + child: child, + isTop: isFullScreen, + ), + ), ], ), isLeft: true,