Vanessa 2023-11-13 09:31:57 +08:00
parent e597a68405
commit 1c6490002f
5 changed files with 17 additions and 15 deletions

View file

@ -84,6 +84,8 @@ html {
& > .block__icons > .fn__flex-1 {
-webkit-app-region: drag;
min-width: 32px;
height: 100%;
box-sizing: border-box;
&:hover {
border-radius: var(--b3-border-radius-b);
@ -316,7 +318,8 @@ html {
}
.file-tree {
&:hover .block__icons .block__icon:not([disabled]) {
&:hover .block__icons .block__icon:not([disabled]),
&.fullscreen .block__icons .block__icon:not([disabled]) {
opacity: 1;
}

View file

@ -68,6 +68,10 @@ body {
padding-left: 10px;
padding-right: 108px;
}
& > .block__icons > .search__label {
right: 108px;
}
}
}

View file

@ -39,8 +39,8 @@ export const genCardHTML = (options: {
<svg><use xlink:href="#iconRiffCard"></use></svg>
</div>
<span class="fn__space"></span>
<span class="fn__flex-1 fn__flex-center resize__move">${window.siyuan.languages.riffCard}</span>`}
<span class="fn__space"></span>
<span class="fn__flex-center">${window.siyuan.languages.riffCard}</span>`}
<span class="fn__space fn__flex-1 resize__move" style="min-height: 100%"></span>
<div data-type="count" class="ft__on-surface ft__smaller fn__flex-center${options.blocks.length === 0 ? " fn__none" : ""}">1/${options.blocks.length}</span></div>
<div class="fn__space"></div>
<div data-id="${options.id || ""}" data-cardtype="${options.cardType}" data-type="filter" class="block__icon block__icon--show">

View file

@ -331,12 +331,12 @@ export class Dock {
} else {
this.layout.element.style.height = "0px";
}
if (document.querySelector("body").classList.contains("body--win32")) {
document.getElementById("drag").classList.remove("fn__hidden");
}
this.resizeElement.classList.add("fn__none");
this.hideDock();
}
if ((type === "graph" || type === "globalGraph") && this.layout.element.querySelector(".fullscreen")) {
document.getElementById("drag")?.classList.remove("fn__hidden");
}
// 关闭 dock 后设置光标
if (!document.querySelector(".layout__center .layout__wnd--active")) {
const currentElement = document.querySelector(".layout__center .layout-tab-bar .item--focus");
@ -483,9 +483,8 @@ export class Dock {
} else {
this.layout.element.style.height = this.getMaxSize() + "px";
}
if ((type === "graph" || type === "globalGraph") &&
document.querySelector("body").classList.contains("body--win32") && this.layout.element.querySelector(".fullscreen")) {
document.getElementById("drag").classList.add("fn__hidden");
if ((type === "graph" || type === "globalGraph") && this.layout.element.querySelector(".fullscreen")) {
document.getElementById("drag")?.classList.add("fn__hidden");
}
if (this.pin) {
this.layout.element.style.opacity = "";

View file

@ -38,14 +38,10 @@ export const fullscreen = (element: Element, btnElement?: Element) => {
const isFullscreen = element.className.includes("fullscreen");
if (isFullscreen) {
element.classList.remove("fullscreen");
if (document.querySelector("body").classList.contains("body--win32")) {
document.getElementById("drag")?.classList.remove("fn__hidden");
}
document.getElementById("drag")?.classList.remove("fn__hidden");
} else {
element.classList.add("fullscreen");
if (document.querySelector("body").classList.contains("body--win32")) {
document.getElementById("drag")?.classList.add("fn__hidden");
}
document.getElementById("drag")?.classList.add("fn__hidden");
}
if (btnElement) {