From 18ab3b420a99f0182c07c5022b85c46717c1c614 Mon Sep 17 00:00:00 2001
From: Nate Sesti <sestinj@gmail.com>
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/components/UserInputContainer.tsx')

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>
   );
 };
-- 
cgit v1.2.3-70-g09d2

