mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 14:19:24 +00:00
remove logs
This commit is contained in:
parent
9aeb652cac
commit
6f3c153683
@ -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();
|
||||||
|
@ -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 };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user