question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with tabs controlling appearance of the toolbar

See original GitHub issue

Is your feature request related to a problem? Please describe We discovered this issue when hiding the canvas and only showing the docs tab for a component. The entire top toolbar disappears when only one tab is visible.

I’ve referenced the related component from the source code below. The logic seems to be controlling the appearance of the entire toolbar and not just the tabs.

https://github.com/storybookjs/storybook/blob/8ffcdda6c944bfeb72359caae2de36590c95fec5/lib/ui/src/components/preview/preview.tsx#L150

Describe the solution you’d like This logic should only control the appearance of the tabs. The appearance of the toolbar should be separate and controlled by the isToolshown boolean value.

Describe alternatives you’ve considered The visibility still needs to be configurable. The logic for tabs doesn’t need to be though in my opinion, if it is considered that they only show when there is more than one available. Alternatively the tabs could always show and be disabled in the instance that there is only one available.

Additional info image With multiple tabs.

image With single docs tab.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
darrenmcc-microfocuscommented, May 4, 2021

@Tomastomaslol I agree with @shilman, and the solution looks good to me!

0reactions
shilmancommented, May 11, 2021

¡Ay Caramba!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.3.0-alpha.23 containing PR #14790 that references this issue. Upgrade today to the @next NPM tag to try it out!

npx sb upgrade --prerelease

Closing this issue. Please re-open if you think there’s still more to do.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Controlling the Appearance of the Task Pane - 2020
Click one of the Task Pane tabs. To collapse the Task Pane: Click in the graphics area or FeatureManager. The Task Pane does...
Read more >
How to fix minimized, missing, hidden or collapsed Outlook ...
How to fix minimized, missing, hidden or collapsed Outlook Ribbon. Outlook has several different ways to control how the Ribbon (toolbar) tabs and...
Read more >
Tabs toolbar | Firefox Support Forum - Mozilla Support
My tabs toolbar does not extend across the entire laptop screen. Looks like it stops halfway, regardless of how many tabs are open....
Read more >
Tabs, panels, or other controls are missing from the ribbon in ...
Issue : When viewing the ribbon in AutoCAD, one or more tabs, panels, or other controls are missing. Maximizing the AutoCAD program window ......
Read more >
Windows 10 Taskbar Not Working? 8 Common Issues and Fixes
Is your Windows 10 taskbar not working properly? Here are fixes for common issues, like the taskbar freezing or not auto-hiding.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found