소스 검색

fix: layout height

F-loat 7 년 전
부모
커밋
f02c479e09
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/components/SiderMenu/index.less
  2. 1 1
      src/index.less

+ 1 - 1
src/components/SiderMenu/index.less

@@ -25,7 +25,7 @@
 }
 
 .sider {
-  min-height: 100vh;
+  min-height: 100%;
   box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
   position: relative;
   z-index: 10;

+ 1 - 1
src/index.less

@@ -10,7 +10,7 @@ body,
 }
 
 :global(.ant-layout) {
-  min-height: 100%;
+  min-height: 100vh;
 }
 
 canvas {