From a63cf23f4907caf849fc5aa04ccd90208c22b57d Mon Sep 17 00:00:00 2001 From: Einar Date: Fri, 12 Jun 2026 14:21:08 +0200 Subject: [PATCH] Set default Storybook layout to show sidebar, toolbar, and addons panel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without explicit layout config, Storybook reads from localStorage — meaning users who previously hid the panel or nav would see them hidden on return, and the first load on a fresh session might show no panel at all. Pinning navSize, bottomPanelHeight, panelPosition, showToolbar, and showTabs in addons.setConfig makes the sidebar + toolbar + controls panel visible by default regardless of prior localStorage state. Co-Authored-By: Claude Sonnet 4.6 --- Source/.storybook/manager.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/.storybook/manager.js b/Source/.storybook/manager.js index 5a2ff8a..b02b95a 100644 --- a/Source/.storybook/manager.js +++ b/Source/.storybook/manager.js @@ -9,6 +9,11 @@ let currentTheme = urlParams.get('docsSiteTheme') ?? 'dark'; addons.setConfig({ theme: currentTheme === 'light' ? themes.light : themes.dark, + navSize: 300, + bottomPanelHeight: 300, + panelPosition: 'bottom', + showToolbar: true, + showTabs: true, }); // Relay the current theme to the preview canvas whenever a story renders,