diff --git a/src/components/modals/CreateBoardModal.jsx b/src/components/modals/CreateBoardModal.jsx index 05194ce4..f2feadd7 100644 --- a/src/components/modals/CreateBoardModal.jsx +++ b/src/components/modals/CreateBoardModal.jsx @@ -122,18 +122,25 @@ const CreateBoardModal = ({ isOpen, closeModal }) => { placeholder="Add a rule" /> -
- - - - {rules.map((rule, index) => ( -
-

{index+1}. {rule}

- - -
- ))} -
+ + {rules.length > 0 && ( +
+ + + + {rules.map((rule, index) => ( +
+

{index+1}. {rule}

+ + +
+ ))} +
+ )} diff --git a/src/components/styled/modals/CreateBoardModal.styled.jsx b/src/components/styled/modals/CreateBoardModal.styled.jsx index 643d101d..36082690 100644 --- a/src/components/styled/modals/CreateBoardModal.styled.jsx +++ b/src/components/styled/modals/CreateBoardModal.styled.jsx @@ -71,10 +71,17 @@ export const StyledModal = styled(Modal)` font-size: 0.8em; } + #rule { + + } + + #rule-btn { + margin-left: 281px; + } fieldset { - margin-left: 24px; - width: auto; + margin-left: 5px; + width: 90%; } legend {