Skip to content

Commit

Permalink
Merge pull request #88 from kreneskyp/resize_targets
Browse files Browse the repository at this point in the history
Node resizer usability fixes
  • Loading branch information
kreneskyp authored Jul 3, 2023
2 parents dbe2471 + d68657c commit 7cd9bb0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion frontend/chains/editor/PromptEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ const PromptEditor = ({ data, onChange }) => {

return (
<VStack spacing={1} align="stretch">
<NodeResizeControl
variant={"line"}
minWidth={400}
position={"left"}
h={"100%"}
style={{ border: "5px solid transparent" }}
/>

{messages.map((message, index) => (
<VStack key={index} p={2} spacing={2}>
<Flex
Expand Down Expand Up @@ -176,7 +184,7 @@ const PromptEditor = ({ data, onChange }) => {
variant={"line"}
minWidth={400}
h={"100%"}
style={{ border: 0 }}
style={{ border: "5px solid transparent" }}
/>
</VStack>
);
Expand Down
10 changes: 9 additions & 1 deletion frontend/chains/flow/FunctionSchemaNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ export const FunctionSchemaNode = ({ config, onFieldChange }) => {
return (
<>
<Box p={2} minWidth={200}>
<NodeResizeControl
variant={"line"}
minWidth={250}
position={"left"}
h={"100%"}
w={"10px"}
style={{ border: "5px solid transparent" }}
/>
<FormLabel justify="start">Name</FormLabel>
<Input name="name" value={config.name} onChange={handleChange} />
<FormLabel justify="start">Description</FormLabel>
Expand All @@ -48,7 +56,7 @@ export const FunctionSchemaNode = ({ config, onFieldChange }) => {
variant={"line"}
minWidth={250}
h={"100%"}
style={{ border: 0 }}
style={{ border: "5px solid transparent" }}
/>
</Box>
</>
Expand Down

0 comments on commit 7cd9bb0

Please sign in to comment.