From 6f3c1536830882de82529a31d279cc04459b67d2 Mon Sep 17 00:00:00 2001 From: EthanHealy01 Date: Thu, 7 Aug 2025 01:56:00 +0100 Subject: [PATCH] remove logs --- frontend/src/hooks/useTooltipPosition.ts | 8 -------- frontend/src/utils/domUtils.ts | 12 +----------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/frontend/src/hooks/useTooltipPosition.ts b/frontend/src/hooks/useTooltipPosition.ts index 5f24861ff..cd293ded4 100644 --- a/frontend/src/hooks/useTooltipPosition.ts +++ b/frontend/src/hooks/useTooltipPosition.ts @@ -98,14 +98,6 @@ export function useTooltipPosition({ left = currentSidebarRight + 20; top = triggerRect.top; // Align top of tooltip with trigger element - console.log('Sidebar tooltip positioning:', { - currentSidebarRight, - triggerRect, - calculatedLeft: left, - calculatedTop: top, - isCorrectSidebar: sidebarInfo.isCorrectSidebar - }); - // Only clamp if we have tooltip dimensions if (tooltipRef.current) { const tooltipRect = tooltipRef.current.getBoundingClientRect(); diff --git a/frontend/src/utils/domUtils.ts b/frontend/src/utils/domUtils.ts index 9b1c37f23..7ec180985 100644 --- a/frontend/src/utils/domUtils.ts +++ b/frontend/src/utils/domUtils.ts @@ -42,7 +42,7 @@ export function isClickOutside(event: MouseEvent, element: HTMLElement | null): } /** - * Gets the sidebar rectangle for tooltip positioning + * Gets the All tools sidebar * @returns Object containing the sidebar rect and whether it's the correct sidebar */ export function getSidebarRect(): { rect: DOMRect | null, isCorrectSidebar: boolean } { @@ -83,16 +83,6 @@ export function getSidebarRect(): { rect: DOMRect | null, isCorrectSidebar: bool // Only consider it correct if we're using the ToolPanel (expanded All Tools sidebar) const isCorrectSidebar = rightmostSidebar.element === 'ToolPanel'; - - console.log('✅ Tooltip positioning using:', { - element: rightmostSidebar.element, - selector: rightmostSidebar.selector, - width: rightmostSidebar.rect.width, - right: rightmostSidebar.rect.right, - isCorrectSidebar, - rect: rightmostSidebar.rect - }); - return { rect: rightmostSidebar.rect, isCorrectSidebar }; }