From 5814d760a6ca6fd22426214b7a551b3442accdbd Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 3 Jul 2023 23:54:01 -0700 Subject: tweaks to config and userInputStepContainer --- .../src/components/UserInputContainer.tsx | 39 ++++++++-------------- 1 file changed, 14 insertions(+), 25 deletions(-) (limited to 'extension/react-app/src') 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 = ({ - children, - onDelete, -}) => { +const UserInputContainer = (props: UserInputContainerProps) => { return ( - {children} - { - e.stopPropagation(); - onDelete(); - }} - text="Delete" - > - - + {props.children} +
+ { + props.onDelete(); + e.stopPropagation(); + }} + text="Delete" + > + + +
); }; -- cgit v1.2.3-70-g09d2