🐛 fix(dropdownComponent): add 'nowheel' class to options when editNode is true to fix styling issue
🐛 fix(inputFileComponent): fix class order in className to ensure correct styling when editNode is true 🐛 fix(genericModal): remove unnecessary conditional rendering of '-' in Input Variables label
This commit is contained in:
parent
97e1c8ab2e
commit
2525ad218c
3 changed files with 8 additions and 6 deletions
|
|
@ -63,8 +63,8 @@ export default function Dropdown({
|
|||
<Listbox.Options
|
||||
className={classNames(
|
||||
editNode
|
||||
? "dropdown-component-true-options "
|
||||
: "dropdown-component-false-options ",
|
||||
? "dropdown-component-true-options nowheel"
|
||||
: "dropdown-component-false-options nowheel",
|
||||
apiModal ? "mb-2 w-[250px]" : "absolute"
|
||||
)}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ export default function InputFileComponent({
|
|||
input.click();
|
||||
};
|
||||
|
||||
|
||||
return (
|
||||
<div className={disabled ? "input-component-div" : "w-full"}>
|
||||
<div className="input-file-component">
|
||||
|
|
@ -98,8 +99,10 @@ export default function InputFileComponent({
|
|||
onClick={handleButtonClick}
|
||||
className={
|
||||
editNode
|
||||
? "input-edit-node " + "input-primary "
|
||||
: "input-primary " + (disabled ? "input-disable " : "")
|
||||
? " input-edit-node " + " input-dialog "
|
||||
: (disabled ? " input-disable " : "") +
|
||||
" input-primary " +
|
||||
" input-dialog "
|
||||
}
|
||||
>
|
||||
{myValue !== "" ? myValue : "No file"}
|
||||
|
|
|
|||
|
|
@ -242,8 +242,7 @@ export default function GenericModal({
|
|||
<div className="flex flex-wrap items-center">
|
||||
<Variable className=" -ml-px mr-1 flex h-4 w-4 text-primary"></Variable>
|
||||
<span className="text-md font-semibold text-primary">
|
||||
Input Variables:{" "}
|
||||
{wordsHighlight && wordsHighlight.length == 0 ? "-" : ""}
|
||||
Input Variables:
|
||||
</span>
|
||||
|
||||
{wordsHighlight.map((word, index) => (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue