In Storybook 8, remove the "min-width" of bottom-docked Addon panel #26446
Replies: 3 comments 5 replies
-
Thank you for reporting this! @cdedreuille Do you have any thoughts on this? |
Beta Was this translation helpful? Give feedback.
-
Thanks @MichaelAllenWarner and @valentinpalkovic. In Storybook 8 we change a lot of the core layout to work better for mobile. We added a new way to drag the sidebar and to fix a lot of the sidebar layout I believe we added a constrain to make sure it doesn't go below a certain size. What I'm curious to understand is why are you not just hiding the sidebar? There's a shortcut for that. This will help you extend the preview to each side of your browser. |
Beta Was this translation helpful? Give feedback.
-
Hi @cdedreuille, Well, hiding the sidebar doesn't do the trick, because then there's no divider to drag at all, and all the desktop browsers on my Mac (Edge, Chrome, Safari, and Firefox) themselves place limits on how narrow a window can be! (Aside: one can get around that by docking the dev-tools to the side of the browser window, and dragging the divider between the dev-tools and the browser window.) But to your point: yes, I can always just hide the Addon panel or change it from bottom-docked to side-docked -- it's not difficult (keyboard shortcuts, as you say), and once I do that I can make the main Preview area as narrow as I like by dragging the divider between the Preview area and the sidebar. However:
So, I figured I'd file this feature request to simply nix the "min-width" on the bottom-docked Addon panel! |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Before Storybook 8, it was possible to drag the divider between the left sidebar and the main Preview area in order to make the Preview area as wide or as narrow as you wished. This is very handy for responsive testing.
In Storybook 8, this is still possible, but with the following limitation: if the Addon panel is docked at the bottom, then you can't get the Preview area below 370px in width. I'm not sure how this limitation is actually enforced in the code, but in effect the bottom-docked Addon panel has a 370px "min-width". To work around this, I have to either hide or side-dock the Addon panel.
Describe the solution you'd like
I'd like to be able to drag the divider between the left sidebar and the main Preview area to make the main Preview area as narrow as I like, even when the Addon panel is bottom-docked.
Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
no
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions