storybookjs/storybook

Addon-docs: Resize iframe to fit content

开放

#8,112 创建于 2019年9月18日

 (32 条评论) (8 个反应) (2 位负责人)TypeScript (10,058 个派生)batch import
addon: docsblock: otherfeature requesthelp wantedtriage:reviewed

仓库指标

星标
 (89,909 个星标)
PR 合并指标
 (平均合并 7天 22小时) (30 天内合并 184 个 PR)

描述

Is your feature request related to a problem? Please describe. Sometimes the component being displayed in Docs is only a few px tall, yet the iframe defaults to 500px. When you have a lot of these stories stacked, there is a lot of empty space.

Describe the solution you'd like After iframe loads, have it resize to fit the content

Describe alternatives you've considered Can set styles to manually override the iframe height per-story, but this is difficult/tedious to maintain

贡献者指南