diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-03 23:54:01 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-03 23:54:01 -0700 |
commit | 18ab3b420a99f0182c07c5022b85c46717c1c614 (patch) | |
tree | 5790389d5012f0ace148d6ba5fe60302b65ff961 /extension/react-app/src/components/UserInputContainer.tsx | |
parent | c4769a2cff1c474fea086fad7f88d532e6b893e3 (diff) | |
download | sncontinue-18ab3b420a99f0182c07c5022b85c46717c1c614.tar.gz sncontinue-18ab3b420a99f0182c07c5022b85c46717c1c614.tar.bz2 sncontinue-18ab3b420a99f0182c07c5022b85c46717c1c614.zip |
tweaks to config and userInputStepContainer
Diffstat (limited to 'extension/react-app/src/components/UserInputContainer.tsx')
-rw-r--r-- | extension/react-app/src/components/UserInputContainer.tsx | 39 |
1 files changed, 14 insertions, 25 deletions
diff --git a/extension/react-app/src/components/UserInputContainer.tsx b/extension/react-app/src/components/UserInputContainer.tsx index 7d6f0d4e..59453169 100644 --- a/extension/react-app/src/components/UserInputContainer.tsx +++ b/extension/react-app/src/components/UserInputContainer.tsx @@ -16,40 +16,29 @@ const StyledDiv = styled.div` background-color: rgb(50 50 50); padding: 8px; padding-left: 16px; + padding-right: 16px; border-bottom: 1px solid white; border-top: 1px solid white; font-size: 13px; display: flex; align-items: center; - gap: 2px; `; -const DeleteButton = styled.button` - position: absolute; - top: 0; - right: 0; - background: none; - border: none; - cursor: pointer; - margin-left: auto; -`; - -const UserInputContainer: React.FC<UserInputContainerProps> = ({ - children, - onDelete, -}) => { +const UserInputContainer = (props: UserInputContainerProps) => { return ( <StyledDiv> - {children} - <HeaderButtonWithText - onClick={(e) => { - e.stopPropagation(); - onDelete(); - }} - text="Delete" - > - <XMark size="1.6em" onClick={onDelete} /> - </HeaderButtonWithText> + {props.children} + <div style={{ marginLeft: "auto" }}> + <HeaderButtonWithText + onClick={(e) => { + props.onDelete(); + e.stopPropagation(); + }} + text="Delete" + > + <XMark size="1.6em" onClick={props.onDelete} /> + </HeaderButtonWithText> + </div> </StyledDiv> ); }; |