Browse Source

fix modal height

AykutSarac 2 năm trước cách đây
mục cha
commit
8a6bec0b25
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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};
   color: ${({ theme }) => theme.TEXT_NORMAL};
   padding: 16px;
   padding: 16px;
   overflow: hidden auto;
   overflow: hidden auto;
-  max-height: 500px;
+  height: fit-content;
+  max-height: calc(100vh - 156px);
 `;
 `;
 
 
 export const ControlsWrapper = styled.div`
 export const ControlsWrapper = styled.div`