fix(global_menu): zoom controls tooltip overlapping

This commit is contained in:
Elian Doran
2025-09-22 20:03:06 +03:00
parent ed8df51216
commit 311f4aded8
2 changed files with 7 additions and 3 deletions

View File

@@ -157,7 +157,10 @@ function ZoomControls({ parentComponent }: { parentComponent?: Component | null
function ZoomControlButton({ command, title, icon, children }: { command: KeyboardActionNames, title: string, icon?: string, children?: ComponentChildren }) {
const linkRef = useRef<HTMLAnchorElement>(null);
useStaticTooltipWithKeyboardShortcut(linkRef, title, command);
useStaticTooltipWithKeyboardShortcut(linkRef, title, command, {
placement: "bottom",
fallbackPlacements: [ "bottom" ]
});
return (
<a
ref={linkRef}