Skip to content

Commit 209eccc

Browse files
committed
chore: increase iframe height in docs
Signed-off-by: Akshat Patel <akshat@live.ca>
1 parent e155ed2 commit 209eccc

File tree

7 files changed

+48
-3
lines changed

7 files changed

+48
-3
lines changed

.storybook/preview.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ html {
66
@include styles.theme(styles.$white);
77
}
88

9+
.innerZoomElementWrapper {
10+
min-width: 55rem;
11+
}
12+
13+
.docblock-argstable {
14+
margin-bottom: 10rem;
15+
}
16+
917
/*
1018
* Story batch styling, we are wrapping the storybook decorator function to ensure
1119
* styles do not leak to other components

src/context-menu/context-menu.stories.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ export default {
3434
ContextMenuDividerComponent,
3535
ContextMenuItemComponent,
3636
ContextMenuGroupComponent
37+
},
38+
parameters: {
39+
docs: {
40+
story: {
41+
height: "25rem"
42+
}
43+
}
3744
}
3845
} as Meta;
3946

src/popover/popover.stories.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ export default {
1515
})
1616
],
1717
parameters: {
18+
docs: {
19+
story: {
20+
inline: false,
21+
height: "15rem"
22+
}
23+
},
1824
layout: "centered"
1925
},
2026
component: PopoverContainer,

src/toggletip/toggletip.stories.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ export default {
2424
})
2525
],
2626
parameters: {
27+
docs: {
28+
story: {
29+
inline: false,
30+
height: "30rem"
31+
}
32+
},
2733
layout: "centered"
2834
},
2935
component: Toggletip,

src/tooltip/definition-tooptip.stories.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ export default {
1111
})
1212
],
1313
parameters: {
14-
layout: "centered"
14+
docs: {
15+
story: {
16+
inline: false,
17+
iframeHeight: "18rem"
18+
}
19+
}
1520
},
1621
component: TooltipDefinition
1722
} as Meta;

src/tooltip/tooltip.stories.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ export default {
4545
}
4646
},
4747
parameters: {
48+
docs: {
49+
story: {
50+
inline: false,
51+
iframeHeight: "18rem"
52+
}
53+
},
4854
layout: "centered"
4955
},
5056
component: Tooltip

src/ui-shell/ui-shell.stories.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ export default {
4848
options: ["white", "g10", "g90", "g100"],
4949
control: "radio"
5050
}
51+
},
52+
parameters: {
53+
docs: {
54+
story: {
55+
height: "30rem"
56+
}
57+
}
5158
}
5259
} as Meta;
5360

@@ -342,7 +349,7 @@ const TogetherTemplate = (args) => ({
342349
</cds-header-action>
343350
</cds-header-global>
344351
</cds-header>
345-
<cds-sidenav [expanded]="active">
352+
<cds-sidenav [expanded]="active" style="margin-top: 3rem">
346353
<cds-sidenav-item>
347354
<svg cdsIcon="fade" size="16"></svg>
348355
Link
@@ -486,7 +493,7 @@ const ModelTemplate = (args) => ({
486493
</cds-header-action>
487494
</cds-header-global>
488495
</cds-header>
489-
<cds-sidenav [navigationItems]="headerItems">
496+
<cds-sidenav [navigationItems]="headerItems" style="margin-top: 3rem">
490497
<cds-sidenav-menu title="Category title">
491498
<svg icon width="20" height="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" aria-hidden="true">
492499
<path

0 commit comments

Comments
 (0)