🎨 style(inputFileComponent): add margin-left to FileSearch2 component to improve spacing
🎨 style(genericModal): add custom-scroll class to div to enable vertical scrolling 🐛 fix(genericModal): set value of inputValue before closing modal in case 1 of switch statement 🐛 fix(genericModal): fix indentation and add missing semicolon in case 2 of switch statement
This commit is contained in:
parent
7a0ab93357
commit
5b2cc6f68a
2 changed files with 4 additions and 3 deletions
|
|
@ -112,7 +112,7 @@ export default function InputFileComponent({
|
|||
{!editNode && !loading && (
|
||||
<FileSearch2
|
||||
strokeWidth={1.5}
|
||||
className="h-6 w-6 hover:text-accent-foreground"
|
||||
className="h-6 w-6 hover:text-accent-foreground ml-3"
|
||||
/>
|
||||
)}
|
||||
{!editNode && loading && (
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ export default function GenericModal({
|
|||
|
||||
{type == TypeModal.PROMPT && (
|
||||
<>
|
||||
<div className="">
|
||||
<div className="h-[6vh] overflow-y-auto custom-scroll">
|
||||
<div className="items-center flex flex-wrap">
|
||||
<Variable className=" -ml-px mr-1 h-4 w-4 text-primary flex"></Variable>
|
||||
<span className="text-md font-semibold text-primary">
|
||||
|
|
@ -281,7 +281,8 @@ export default function GenericModal({
|
|||
onClick={() => {
|
||||
switch (myModalType) {
|
||||
case 1:
|
||||
setModalOpen(false);
|
||||
setValue(inputValue);
|
||||
setModalOpen(false);
|
||||
break;
|
||||
case 2:
|
||||
validatePrompt(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue