🐛 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:
Cristhian Zanforlin Lousa 2023-07-07 17:37:23 -03:00
commit 2525ad218c
3 changed files with 8 additions and 6 deletions

View file

@ -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"
)}
>

View file

@ -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"}

View 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) => (