瀏覽代碼

fix: switch from vh to % for preview contents to fix issue with not resizing on control panel height change

Aaron Bassett 5 月之前
父節點
當前提交
6aa8123172
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/component-library/.storybook/storybook.module.scss

+ 2 - 2
packages/component-library/.storybook/storybook.module.scss

@@ -6,8 +6,8 @@ body,
 }
 
 .contents {
-  height: 100vh;
-  min-width: 100vh;
+  height: 100%;
+  min-width: 100%;
   color: theme.color("foreground");
   background: theme.color("background", "primary");
   display: grid;