瀏覽代碼

fix modal height

AykutSarac 2 年之前
父節點
當前提交
8a6bec0b25
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/components/Modal/styles.tsx

+ 2 - 1
src/components/Modal/styles.tsx

@@ -55,7 +55,8 @@ export const ContentWrapper = styled.div`
   color: ${({ theme }) => theme.TEXT_NORMAL};
   padding: 16px;
   overflow: hidden auto;
-  max-height: 500px;
+  height: fit-content;
+  max-height: calc(100vh - 156px);
 `;
 
 export const ControlsWrapper = styled.div`