remove logs

This commit is contained in:
EthanHealy01 2025-08-07 01:56:00 +01:00
parent 9aeb652cac
commit 6f3c153683
2 changed files with 1 additions and 19 deletions

View File

@ -98,14 +98,6 @@ export function useTooltipPosition({
left = currentSidebarRight + 20; left = currentSidebarRight + 20;
top = triggerRect.top; // Align top of tooltip with trigger element 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 // Only clamp if we have tooltip dimensions
if (tooltipRef.current) { if (tooltipRef.current) {
const tooltipRect = tooltipRef.current.getBoundingClientRect(); const tooltipRect = tooltipRef.current.getBoundingClientRect();

View File

@ -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 * @returns Object containing the sidebar rect and whether it's the correct sidebar
*/ */
export function getSidebarRect(): { rect: DOMRect | null, isCorrectSidebar: boolean } { 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) // Only consider it correct if we're using the ToolPanel (expanded All Tools sidebar)
const isCorrectSidebar = rightmostSidebar.element === 'ToolPanel'; 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 }; return { rect: rightmostSidebar.rect, isCorrectSidebar };
} }