Skip to content

Commit

Permalink
Merge pull request storybookjs#5413 from storybooks/fix/layout-panel
Browse files Browse the repository at this point in the history
FIX the layout issue where panels still sort-of appear on non story viewmodes
  • Loading branch information
Tom Coleman authored Jan 31, 2019
2 parents b997180 + 370b011 commit ba595e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui/src/components/layout/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ba595e4

Please sign in to comment.