From 370b011a1b73e8398251eccd89c4d1db1c56acb8 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Wed, 30 Jan 2019 14:07:49 +0100 Subject: [PATCH] FIX the layout issue where panels still sort-of appear on non story viewmodes --- lib/ui/src/components/layout/container.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/src/components/layout/container.js b/lib/ui/src/components/layout/container.js index 5937807955b5..e6afc09202ba 100644 --- a/lib/ui/src/components/layout/container.js +++ b/lib/ui/src/components/layout/container.js @@ -383,7 +383,7 @@ class Layout extends Component { const margin = theme.layoutMargin; const isNavHidden = options.isFullscreen || !options.showNav; - const isPanelHidden = options.isFullscreen || !options.showPanel || !viewMode; + const isPanelHidden = options.isFullscreen || !options.showPanel || viewMode !== 'story'; const isFullscreen = options.isFullscreen || (isNavHidden && isPanelHidden); const { isToolshown } = options;