-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @shish! I'm Dosu and I’m helping the storybook team. This isn't intentional—it's a browser-specific bug in Storybook 10.2.0+ that affects Firefox ESR 140.x. The preview iframe doesn't take the full height, so you get a very short (about 100px tall) viewport. Upgrading to Firefox 147+ fixes it, but if you need to stay on ESR, you can work around it by adding this CSS to your <style>
@-moz-document url-prefix() {
iframe[title="storybook-preview-iframe"] {
position: static !important;
width: 100% !important;
height: 100vh !important;
}
}
</style>For the Docs view: viewport controls are not shown by design, but you can set the docs iframe height globally in your preview config: export const parameters = {
docs: {
story: { iframeHeight: '400px' }, // or whatever height you want
},
};You can also set a default viewport for Canvas by adding to your preview config: import { INITIAL_VIEWPORTS } from 'storybook/viewport';
export default {
parameters: {
viewport: {
options: INITIAL_VIEWPORTS,
},
},
initialGlobals: {
viewport: { value: 'ipad' }, // or any device key you want as default
},
};If you still see the issue after these changes, please let me know your browser version and share a minimal reproduction if possible. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.

Hi @shish! I'm Dosu and I’m helping the storybook team.
This isn't intentional—it's a browser-specific bug in Storybook 10.2.0+ that affects Firefox ESR 140.x. The preview iframe doesn't take the full height, so you get a very short (about 100px tall) viewport. Upgrading to Firefox 147+ fixes it, but if you need to stay on ESR, you can work around it by adding this CSS to your
.storybook/manager-head.html:Details & workaround
For the Docs view: viewport controls are not shown by design, …