diff --git a/app/src/assets/scss/_function.scss b/app/src/assets/scss/_function.scss index 7fa0334e7..d7108ef9d 100644 --- a/app/src/assets/scss/_function.scss +++ b/app/src/assets/scss/_function.scss @@ -1,4 +1,7 @@ .fn { + &__hidescrollbar::-webkit-scrollbar { + display: none; + } &__ellipsis { @include text-clamp(1); diff --git a/app/src/layout/index.ts b/app/src/layout/index.ts index 824a7596a..bd553f981 100644 --- a/app/src/layout/index.ts +++ b/app/src/layout/index.ts @@ -96,7 +96,7 @@ export class Layout { resizeTabs(); // https://ld246.com/article/1669858316295 if (this.direction === "tb") { - child.element.style.minHeight = "64px" + child.element.style.minHeight = "64px"; } child.parent = this; } diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts index 5340bcebb..4d8b12f53 100644 --- a/app/src/protyle/export/index.ts +++ b/app/src/protyle/export/index.ts @@ -72,10 +72,10 @@ const renderPDF = (id: string) => { keepFold: false, })); const servePath = window.location.protocol + "//" + window.location.host; - const isDefault = (window.siyuan.config.appearance.mode === 1 && window.siyuan.config.appearance.themeDark === "midnight") || (window.siyuan.config.appearance.mode === 0 && window.siyuan.config.appearance.themeLight === "daylight") + const isDefault = (window.siyuan.config.appearance.mode === 1 && window.siyuan.config.appearance.themeDark === "midnight") || (window.siyuan.config.appearance.mode === 0 && window.siyuan.config.appearance.themeLight === "daylight"); let themeStyle = ""; if (!isDefault) { - themeStyle = `` + themeStyle = ``; } const html = `
@@ -484,10 +484,10 @@ const onExport = (data: IWebSocketData, filePath: string, type: string, removeAs themeName = window.siyuan.config.appearance.themeDark; mode = 1; } - const isDefault = (window.siyuan.config.appearance.mode === 1 && window.siyuan.config.appearance.themeDark === "midnight") || (window.siyuan.config.appearance.mode === 0 && window.siyuan.config.appearance.themeLight === "daylight") + const isDefault = (window.siyuan.config.appearance.mode === 1 && window.siyuan.config.appearance.themeDark === "midnight") || (window.siyuan.config.appearance.mode === 0 && window.siyuan.config.appearance.themeLight === "daylight"); let themeStyle = ""; if (!isDefault) { - themeStyle = `` + themeStyle = ``; } const html = ` diff --git a/app/src/search/util.ts b/app/src/search/util.ts index 644949581..6c6c67b2f 100644 --- a/app/src/search/util.ts +++ b/app/src/search/util.ts @@ -203,9 +203,9 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: () config.hPath = ""; element.querySelector("#searchPathInput").innerHTML = config.hPath; inputTimeout = inputEvent(element, config, inputTimeout, edit, false); - const includeElement = element.querySelector("#searchInclude") - includeElement.classList.remove("b3-button--cancel") - includeElement.setAttribute("disabled", "disabled") + const includeElement = element.querySelector("#searchInclude"); + includeElement.classList.remove("b3-button--cancel"); + includeElement.setAttribute("disabled", "disabled"); event.stopPropagation(); event.preventDefault(); break; @@ -249,12 +249,12 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: () } config.hPath = escapeHtml(hPathList.join(" ")); element.querySelector("#searchPathInput").innerHTML = `${config.hPath}`; - const includeElement = element.querySelector("#searchInclude") - includeElement.classList.remove("b3-button--cancel") + const includeElement = element.querySelector("#searchInclude"); + includeElement.classList.remove("b3-button--cancel"); if (enableIncludeChild) { - includeElement.removeAttribute("disabled") + includeElement.removeAttribute("disabled"); } else { - includeElement.setAttribute("disabled", "disabled") + includeElement.setAttribute("disabled", "disabled"); } inputTimeout = inputEvent(element, config, inputTimeout, edit, false); }); @@ -263,7 +263,7 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: () event.preventDefault(); break; } else if (target.id === "searchInclude") { - target.classList.toggle("b3-button--cancel") + target.classList.toggle("b3-button--cancel"); if (target.classList.contains("b3-button--cancel")) { config.idPath.forEach((item, index) => { if (!item.endsWith(".sy") && item.split("/").length > 1) { @@ -686,7 +686,7 @@ const addConfigFilterMenu = (config: ISearchOption, edit: Protyle, element: Elem `, width: "520px", - }) + }); const btnsElement = filterDialog.element.querySelectorAll(".b3-button"); btnsElement[0].addEventListener("click", () => { filterDialog.destroy(); @@ -694,7 +694,7 @@ const addConfigFilterMenu = (config: ISearchOption, edit: Protyle, element: Elem btnsElement[1].addEventListener("click", () => { filterDialog.element.querySelectorAll(".b3-switch").forEach((item: HTMLInputElement) => { config.types[item.getAttribute("data-type") as TSearchFilter] = item.checked; - }) + }); inputEvent(element, config, undefined, edit); filterDialog.destroy(); }); diff --git a/app/src/util/pathName.ts b/app/src/util/pathName.ts index c994bddd2..b673fad36 100644 --- a/app/src/util/pathName.ts +++ b/app/src/util/pathName.ts @@ -96,7 +96,8 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void, return; } const dialog = new Dialog({ - title: `${title || window.siyuan.languages.move} `, + title: `${title || window.siyuan.languages.move} +`, content: `