This commit is contained in:
Vanessa 2023-02-16 15:32:01 +08:00
parent af12e702ad
commit e241d067be
3 changed files with 16 additions and 2 deletions

View file

@ -295,7 +295,7 @@ html {
.status {
background-color: var(--b3-theme-surface);
box-sizing: border-box;
z-index: 3;
z-index: 2;
height: 32px;
line-height: 32px;
border-top: .5px solid var(--b3-border-color);

View file

@ -164,7 +164,9 @@ ${this.position === "Top" ? "top" : "bottom"}:0`);
}
public hideDock(reset = false) {
if (!reset && (this.layout.element.style.opacity === "0" || this.pin)) {
if (!reset && (this.layout.element.style.opacity === "0" || this.pin) ||
this.layout.element.querySelector(".fullscreen") // 关系图全屏不应该退出
) {
return;
}
if (this.position === "Left") {

View file

@ -7,6 +7,7 @@ import {Constants} from "../../constants";
import {onGet} from "../util/onGet";
import {saveScroll} from "../scroll/saveScroll";
import {hideElements} from "../ui/hideElements";
import {hasClosestByClassName} from "../util/hasClosest";
export const netImg2LocalAssets = (protyle: IProtyle) => {
if (protyle.element.querySelector(".wysiwygLoading")) {
@ -61,6 +62,17 @@ export const fullscreen = (element: Element, btnElement?: Element) => {
} else {
btnElement.querySelector("use").setAttribute("xlink:href", "#iconContract");
}
const dockLayoutElement = hasClosestByClassName(element, "layout--float")
if (dockLayoutElement) {
if (isFullscreen) {
dockLayoutElement.setAttribute("data-temp", dockLayoutElement.style.transform)
dockLayoutElement.style.transform = "none"
} else {
dockLayoutElement.style.transform = dockLayoutElement.getAttribute("data-temp")
dockLayoutElement.removeAttribute("data-temp")
}
}
return;
}
/// #if !MOBILE
if (element.classList.contains("protyle")) {