mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-10 22:52:34 +01:00
This commit is contained in:
parent
318e570343
commit
397da9d57d
4 changed files with 44 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import {exportLayout, JSONToLayout, resetLayout, resizeTopBar} from "../layout/util";
|
||||
import {adjustLayout, exportLayout, JSONToLayout, resetLayout, resizeTopBar} from "../layout/util";
|
||||
import {resizeTabs} from "../layout/tabUtil";
|
||||
import {setStorageVal} from "../protyle/util/compatibility";
|
||||
/// #if !BROWSER
|
||||
|
|
@ -126,6 +126,7 @@ export const onGetConfig = (isStart: boolean, app: App) => {
|
|||
window.siyuan.emojis = response.data as IEmoji[];
|
||||
try {
|
||||
JSONToLayout(app, isStart);
|
||||
adjustLayout();
|
||||
/// #if !BROWSER
|
||||
sendGlobalShortcut(app);
|
||||
/// #endif
|
||||
|
|
@ -145,6 +146,7 @@ export const onGetConfig = (isStart: boolean, app: App) => {
|
|||
window.addEventListener("resize", () => {
|
||||
window.clearTimeout(resizeTimeout);
|
||||
resizeTimeout = window.setTimeout(() => {
|
||||
adjustLayout();
|
||||
resizeTabs();
|
||||
resizeTopBar();
|
||||
}, 200);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue