storybookjs/storybook

Addon-docs: Resize iframe to fit content

オープン

#8,112 opened on 2019/09/18

 (32 件のコメント) (8 件のリアクション) (2 人の担当者)TypeScript (10,058 件のフォーク)batch import
addon: docsblock: otherfeature requesthelp wantedtriage:reviewed

Repository metrics

Stars
 (89,909 個のスター)
PR merge metrics
 (平均マージ 7d 22h) (30d で 184 merged PRs)

説明

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

コントリビューターガイド