From e41d7bd9604181cace6ad7e1e105e27525a3de9c Mon Sep 17 00:00:00 2001 From: chihlasm Date: Mon, 13 Apr 2026 21:27:58 +0000 Subject: [PATCH] fix(network): align resize border with node visual boundary NodeResizer handles positioned at RF wrapper size, but NodeTooltip and NodeStatusIndicator wrappers had no size constraints, causing BaseNode (w-full h-full) to shrink to content size instead of filling the wrapper. Add w-full h-full to NodeTooltip, NodeTooltipTrigger, and NodeStatusIndicator so the full height chain is maintained. Co-Authored-By: Claude Sonnet 4.6 --- .../src/components/network/ui/node-status-indicator.tsx | 2 +- frontend/src/components/network/ui/node-tooltip.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/network/ui/node-status-indicator.tsx b/frontend/src/components/network/ui/node-status-indicator.tsx index 96032bce..fbad6834 100644 --- a/frontend/src/components/network/ui/node-status-indicator.tsx +++ b/frontend/src/components/network/ui/node-status-indicator.tsx @@ -31,7 +31,7 @@ export function NodeStatusIndicator({ status = 'unknown', children, className }: return (
({ hide: () => {}, }) -export function NodeTooltip({ children, ...props }: ComponentProps<'div'>) { +export function NodeTooltip({ children, className, ...props }: ComponentProps<'div'>) { const [visible, setVisible] = useState(false) const show = useCallback(() => setVisible(true), []) const hide = useCallback(() => setVisible(false), []) return ( -
{children}
+
{children}
) } export function NodeTooltipTrigger({ children, + className, onMouseEnter, onMouseLeave, ...props @@ -36,6 +37,7 @@ export function NodeTooltipTrigger({ return (
{ show() onMouseEnter?.(e)