diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts index eac33defb..afc0bb0fe 100644 --- a/app/src/layout/util.ts +++ b/app/src/layout/util.ts @@ -412,10 +412,10 @@ export const resizeTabs = () => { setTimeout(() => { // .layout .fn__flex-shrink {transition: width .3s ease;} 时需要再次计算 padding setPadding(item.editor.protyle); - if (echarts) { - (item.editor.protyle.wysiwyg.element.querySelectorAll('[data-subtype="echarts"], [data-subtype="mindmap"]').forEach((chartItem: HTMLElement) => { + if (typeof echarts !== "undefined") { + item.editor.protyle.wysiwyg.element.querySelectorAll('[data-subtype="echarts"], [data-subtype="mindmap"]').forEach((chartItem: HTMLElement) => { echarts.getInstanceById(chartItem.firstElementChild.nextElementSibling.getAttribute("_echarts_instance_")).resize(); - })) + }); } }, 200); } diff --git a/app/src/util/onGetConfig.ts b/app/src/util/onGetConfig.ts index 6bb0175f0..e2356f76e 100644 --- a/app/src/util/onGetConfig.ts +++ b/app/src/util/onGetConfig.ts @@ -172,8 +172,8 @@ const initStatus = () => {
-
- +
+
@@ -224,17 +224,6 @@ const initStatus = () => { target.querySelector(".b3-menu").classList.add("fn__none"); event.stopPropagation(); break; - } else if (target.id === "barSync") { - if (needSubscribe() || target.firstElementChild.classList.contains("fn__rotate")) { - return; - } - if (!window.siyuan.config.sync.enabled) { - showMessage(window.siyuan.languages._kernel[124]); - return; - } - fetchPost("/api/sync/performSync", {}); - event.stopPropagation(); - break; } else if (target.classList.contains("b3-menu__item")) { const type = target.getAttribute("data-type") as TDockType; getDockByType(type).toggleModel(type); @@ -266,10 +255,21 @@ const initStatus = () => { /// #endif event.stopPropagation(); break; + } else if (target.id === "barFeedback") { + if ("zh_CN" === window.siyuan.config.lang) { + window.open("https://ld246.com/article/1649901726096"); + } else { + window.open("https://github.com/siyuan-note/siyuan/issues"); + } + event.stopPropagation(); + break; } target = target.parentElement; } }); + // if (window.siyuan.config.appearance.hideStatusBar) { + // document.getElementById("status").classList.add("fn__none"); + // } }; const initBar = () => { @@ -299,8 +299,8 @@ const initBar = () => {
-
- +
+