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

貢獻者指南