Procházet zdrojové kódy

Merge pull request #732 from smiclea/fix-scroll

Fix a vertical scroll bar appearing in the wizard
Daniel Vincze před 3 roky
rodič
revize
f609a9f860

+ 2 - 0
src/components/modules/WizardModule/WizardOptions/WizardOptions.tsx

@@ -48,6 +48,7 @@ const Options = styled.div<any>`
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
   min-height: 0;
   min-height: 0;
+  height: 100%;
 `;
 `;
 const Fields = styled.div<any>`
 const Fields = styled.div<any>`
   ${props => (props.layout === "page" ? "" : "padding: 32px;")}
   ${props => (props.layout === "page" ? "" : "padding: 32px;")}
@@ -55,6 +56,7 @@ const Fields = styled.div<any>`
   flex-direction: column;
   flex-direction: column;
   overflow: auto;
   overflow: auto;
   padding-right: ${props => (props.layout === "page" ? 4 : 24)}px;
   padding-right: ${props => (props.layout === "page" ? 4 : 24)}px;
+  flex-grow: 1;
 `;
 `;
 const Group = styled.div<any>`
 const Group = styled.div<any>`
   display: flex;
   display: flex;