mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 17:55:52 +01:00
fix(global_menu): zoom controls tooltip overlapping
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user