mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 19:16:01 +00:00
#186 zoom
This commit is contained in:
@@ -53,6 +53,7 @@ export const commandsCustomized = derived([commands, commandsSettings], ([$comma
|
||||
);
|
||||
|
||||
export const visibleToolbar = writableWithStorage(true, 'visibleToolbar');
|
||||
export const zoomKoef = writableWithStorage(1, 'zoomKoef');
|
||||
export const leftPanelWidth = writable(300);
|
||||
export const currentDropDownMenu = writable(null);
|
||||
export const openedModals = writable([]);
|
||||
@@ -97,6 +98,13 @@ visibleToolbar.subscribe(value => {
|
||||
});
|
||||
export const getVisibleToolbar = () => visibleToolbarValue;
|
||||
|
||||
let zommKoefValue = null;
|
||||
zoomKoef.subscribe(value => {
|
||||
zommKoefValue = value;
|
||||
document.body.style.setProperty('zoom', zommKoefValue);
|
||||
});
|
||||
export const getZoomKoef = () => zommKoefValue;
|
||||
|
||||
let openedTabsValue = null;
|
||||
openedTabs.subscribe(value => {
|
||||
openedTabsValue = value;
|
||||
|
||||
Reference in New Issue
Block a user