Vanessa
2023-02-15 09:12:14 +08:00
parent f4b91dd8c9
commit 9249d4e010
4 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -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%">
@@ -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)) {
+7 -7
View File
@@ -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",
+2 -2
View File
@@ -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;
+2 -2
View File
@@ -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";