diff --git a/app/src/card/makeCard.ts b/app/src/card/makeCard.ts index d652732d3..9ec3f8d41 100644 --- a/app/src/card/makeCard.ts +++ b/app/src/card/makeCard.ts @@ -59,7 +59,7 @@ export const makeCard = (nodeElement: Element[]) => { html += genCardItem(item); }); const dialog = new Dialog({ - width: isMobile() ? "90vw" : "50vw", + width: isMobile() ? "90vw" : "768px", height: "70vh", title: window.siyuan.languages.riffCard, content: `
@@ -79,7 +79,7 @@ export const makeCard = (nodeElement: Element[]) => { } }); dialog.element.setAttribute("data-key", "makeCard"); - dialog.element.style.zIndex = "199"; + dialog.element.style.zIndex = "200"; dialog.element.addEventListener("click", (event) => { let target = event.target as HTMLElement; while (target && !target.isSameNode(dialog.element)) { diff --git a/app/src/constants.ts b/app/src/constants.ts index e44cbc7d4..d58143f16 100644 --- a/app/src/constants.ts +++ b/app/src/constants.ts @@ -328,13 +328,13 @@ export abstract class Constants { data: [ [{ type: "file", - size: {width: 240, height: 0}, + size: {width: 220, height: 0}, show: true, icon: "iconFiles", hotkeyLangId: "fileTree", }, { type: "outline", - size: {width: 240, height: 0}, + size: {width: 220, height: 0}, show: false, icon: "iconAlignCenter", hotkeyLangId: "outline", @@ -346,13 +346,13 @@ export abstract class Constants { hotkeyLangId: "inbox", }], [{ type: "bookmark", - size: {width: 240, height: 0}, + size: {width: 220, height: 0}, show: false, icon: "iconBookmark", hotkeyLangId: "bookmark", }, { type: "tag", - size: {width: 240, height: 0}, + size: {width: 220, height: 0}, show: false, icon: "iconTags", hotkeyLangId: "tag", @@ -364,19 +364,19 @@ export abstract class Constants { data: [ [{ type: "graph", - size: {width: 360, height: 0}, + size: {width: 320, height: 0}, show: false, icon: "iconGraph", hotkeyLangId: "graphView", }, { type: "globalGraph", - size: {width: 360, height: 0}, + size: {width: 320, height: 0}, show: false, icon: "iconGlobalGraph", hotkeyLangId: "globalGraph", }], [{ type: "backlink", - size: {width: 360, height: 0}, + size: {width: 320, height: 0}, show: false, icon: "iconLink", hotkeyLangId: "backlinks", diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts index a4ad8b2c1..bf5bb9683 100644 --- a/app/src/layout/dock/index.ts +++ b/app/src/layout/dock/index.ts @@ -525,9 +525,9 @@ ${this.position === "Top" ? "top" : "bottom"}:-${this.layout.element.clientHeigh this.element.querySelectorAll(".dock__item--active").forEach((item) => { let size; if (this.position === "Left" || this.position === "Right") { - size = parseInt(item.getAttribute("data-width")) || (["graph", "globalGraph", "backlink"].includes(item.getAttribute("data-type")) ? 320 : 240); + size = parseInt(item.getAttribute("data-width")) || (["graph", "globalGraph", "backlink"].includes(item.getAttribute("data-type")) ? 320 : 220); } else { - size = parseInt(item.getAttribute("data-height")) || 240; + size = parseInt(item.getAttribute("data-height")) || 220; } if (size > max) { max = size; diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts index a9748f0d5..fc2548c29 100644 --- a/app/src/layout/util.ts +++ b/app/src/layout/util.ts @@ -653,10 +653,10 @@ export const addResize = (obj: Layout | Wnd) => { if (previousNowSize < 8 || nextNowSize < 8) { return; } - if (window.siyuan.layout.leftDock?.layout.element.contains(previousElement) && previousNowSize < 188) { + if (window.siyuan.layout.leftDock?.layout.element.contains(previousElement) && previousNowSize < 220) { return; } - if (window.siyuan.layout.rightDock?.layout.element.contains(nextElement) && nextNowSize < 188) { + if (window.siyuan.layout.rightDock?.layout.element.contains(nextElement) && nextNowSize < 320) { return; } previousElement.style[direction === "lr" ? "width" : "height"] = previousNowSize + "px";