From e43f56df32e70703fc00df7d4056d053e3d81c7b Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Fri, 17 May 2024 20:55:59 +0100 Subject: [PATCH] Fixed dropdown going upwards --- src/frontend/src/components/dropdownComponent/index.tsx | 6 ++++-- src/frontend/src/components/inputComponent/index.tsx | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/components/dropdownComponent/index.tsx b/src/frontend/src/components/dropdownComponent/index.tsx index b17332268..8402d166e 100644 --- a/src/frontend/src/components/dropdownComponent/index.tsx +++ b/src/frontend/src/components/dropdownComponent/index.tsx @@ -59,7 +59,7 @@ export default function Dropdown({ ? "dropdown-component-outline" : "dropdown-component-false-outline", "w-full justify-between font-normal", - editNode ? "input-edit-node" : "py-2" + editNode ? "input-edit-node" : "py-2", )} > @@ -78,6 +78,8 @@ export default function Dropdown({ )} diff --git a/src/frontend/src/components/inputComponent/index.tsx b/src/frontend/src/components/inputComponent/index.tsx index b285a1874..282d88283 100644 --- a/src/frontend/src/components/inputComponent/index.tsx +++ b/src/frontend/src/components/inputComponent/index.tsx @@ -169,6 +169,7 @@ export default function InputComponent({ className="nocopy nopan nodelete nodrag noundo p-0" style={{ minWidth: refInput?.current?.clientWidth ?? "200px" }} side="bottom" + avoidCollisions={false} align="center" >