summaryrefslogtreecommitdiff
path: root/extension/react-app/src
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-03 23:54:01 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-03 23:54:01 -0700
commit5814d760a6ca6fd22426214b7a551b3442accdbd (patch)
tree6036a06b3c883962a4859f4425ecd0a467aee65e /extension/react-app/src
parent6ad704508f2550cba76d98b88d8483848f0c5ea6 (diff)
downloadsncontinue-5814d760a6ca6fd22426214b7a551b3442accdbd.tar.gz
sncontinue-5814d760a6ca6fd22426214b7a551b3442accdbd.tar.bz2
sncontinue-5814d760a6ca6fd22426214b7a551b3442accdbd.zip
tweaks to config and userInputStepContainer
Diffstat (limited to 'extension/react-app/src')
-rw-r--r--extension/react-app/src/components/UserInputContainer.tsx39
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>
);
};