Skip to content

Commit 49f07dc

Browse files
committed
docs: improve placement of open button when iframed
1 parent 8b9c87f commit 49f07dc

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.storybook/page.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@
22
.docblock-argstable-body td:nth-child(3) {
33
display: none;
44
}
5+
6+
body {
7+
height: 100vh;
8+
}
9+
10+
#storybook-root {
11+
height: 100%;
12+
}

src/stories/utils/lazy-preview-element.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ export class LazyPreviewElement<
2323
const style = document.createElement("style");
2424
style.textContent = `
2525
lazy-preview {
26+
height: 100%;
2627
display: flex;
2728
justify-content: center;
29+
align-items: center;
2830
}
2931
3032
lazy-preview button {

0 commit comments

Comments
 (0)