Pārlūkot izejas kodu

fix modal height

AykutSarac 2 gadi atpakaļ
vecāks
revīzija
8a6bec0b25
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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`