fix: Improve hide-output button alignment in GenericNode component (#5645)

🔧 (GenericNode/index.tsx): Update CSS class for HiddenOutputsButton to improve styling and alignment
🔧 (GenericNode/index.tsx): Update CSS class for GenericNode component to improve alignment of elements
This commit is contained in:
Cristhian Zanforlin Lousa 2025-01-13 19:19:27 -03:00 • committed by GitHub
commit 88fa784291
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,7 +48,7 @@ const HiddenOutputsButton = memo(
}) => ( }) => (
<Button <Button
unstyled unstyled
className="group m-auto h-[1.75rem] w-[1.75rem] place-items-center items-center rounded-full border bg-muted hover:text-foreground" className="group flex h-[1.75rem] w-[1.75rem] items-center justify-center rounded-full border bg-muted hover:text-foreground"
onClick={onClick} onClick={onClick}
> >
<ForwardedIconComponent <ForwardedIconComponent
@ -461,7 +461,7 @@ function GenericNode({
> >
<div <div
className={cn( className={cn(
"absolute left-0 right-0 flex justify-center", "absolute left-1/2 flex -translate-x-1/2 justify-center",
(shownOutputs && shownOutputs.length > 0) || (shownOutputs && shownOutputs.length > 0) ||
showHiddenOutputs showHiddenOutputs
? "bottom-[-0.8rem]" ? "bottom-[-0.8rem]"