style/global menu: improve the full screen / zoom buttons, refactor

This commit is contained in:
Adorian Doran
2025-09-21 15:13:08 +03:00
parent 5c27e96960
commit 6f565afd44
5 changed files with 25 additions and 20 deletions

View File

@@ -161,12 +161,13 @@ function ZoomControls({ parentComponent }: { parentComponent?: Component | null
return (
<a
ref={linkRef}
tabIndex={0}
onClick={(e) => {
parentComponent?.triggerCommand(command);
setTimeout(() => updateZoomState(), 300)
e.stopPropagation();
}}
className={icon}
className={`dropdown-item-button ${icon}`}
>{children}</a>
)
}
@@ -174,6 +175,7 @@ function ZoomControls({ parentComponent }: { parentComponent?: Component | null
return isElectron() ? (
<FormListItem
icon="bx bx-empty"
container
className="zoom-container"
>
{t("global_menu.zoom")}