Explorar o código

fix modal height

AykutSarac %!s(int64=2) %!d(string=hai) anos
pai
achega
8a6bec0b25
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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`