Skip to content

Commit

Permalink
💄 #7368
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Feb 15, 2023
1 parent f4b91dd commit 9249d4e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions app/src/card/makeCard.ts
Expand Up @@ -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: `<div class="b3-dialog__content fn__flex-column" style="box-sizing: border-box;height: 100%">
Expand All @@ -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)) {
Expand Down
14 changes: 7 additions & 7 deletions app/src/constants.ts
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions app/src/layout/dock/index.ts
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions app/src/layout/util.ts
Expand Up @@ -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";
Expand Down

0 comments on commit 9249d4e

Please sign in to comment.