There was an error while loading. Please reload this page.
1 parent 9289218 commit ec5efceCopy full SHA for ec5efce
2 files changed
.storybook/global.css
@@ -26,6 +26,12 @@ html body {
26
width: 300px;
27
}
28
29
+/* Grow the root to fit overlaySpace reservations so Pixel's autofit
30
+ crop keeps portalled overlays in frame. */
31
+#root:has([data-overlay-space]) {
32
+ width: max-content;
33
+}
34
+
35
/* Story stand-in: a VS Code secondary button like consuming webviews render. */
36
.story-trigger {
37
padding: 0.4em 1em;
packages/ui/src/storybook.tsx
@@ -33,7 +33,7 @@ export function overlaySpace(
: { width, height };
return function OverlaySpace(Story) {
return (
- <div style={style}>
+ <div data-overlay-space style={style}>
<Story />
38
</div>
39
);
0 commit comments