mirror of
https://github.com/logseq/logseq.git
synced 2026-05-29 23:19:38 +00:00
fix: zoom menu styles
This commit is contained in:
committed by
Tienson Qin
parent
81126d89fc
commit
93e3f53a3d
@@ -11,7 +11,7 @@ export const ZoomMenu = observer(function ZoomMenu(): JSX.Element {
|
||||
|
||||
return (
|
||||
<DropdownMenuPrimitive.Root>
|
||||
<DropdownMenuPrimitive.Trigger className="tl-button text-sm w-auto px-2" id="tl-zoom">
|
||||
<DropdownMenuPrimitive.Trigger className="tl-button text-sm px-2 important" id="tl-zoom">
|
||||
{(app.viewport.camera.zoom * 100).toFixed(0) + '%'}
|
||||
</DropdownMenuPrimitive.Trigger>
|
||||
<DropdownMenuPrimitive.Content className="tl-menu" id="zoomPopup" sideOffset={12}>
|
||||
|
||||
@@ -45,6 +45,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
#tl-zoom {
|
||||
@apply w-auto !important;
|
||||
}
|
||||
|
||||
#zoomPopup .tl-menu-item {
|
||||
@apply pl-4 !important;
|
||||
}
|
||||
|
||||
.tl-menu-button-row {
|
||||
@apply flex justify-between px-4 py-1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user