mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
This commit is contained in:
@@ -153,10 +153,6 @@ html[data-frontend="browser-desktop"] {
|
||||
height: 31.5px;
|
||||
border-radius: 0;
|
||||
|
||||
svg {
|
||||
width: 16px !important;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: var(--b3-theme-on-error);
|
||||
background-color: var(--b3-theme-error)
|
||||
@@ -173,7 +169,7 @@ html[data-frontend="browser-desktop"] {
|
||||
|
||||
.toolbar__item {
|
||||
padding: 13.25px;
|
||||
height: auto;
|
||||
height: 42px;
|
||||
margin: 0;
|
||||
border-radius: 0;
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@ body {
|
||||
}
|
||||
|
||||
&.body--win32 {
|
||||
--b3-toolbar-left-mac: 0;
|
||||
-webkit-font-smoothing: auto;
|
||||
|
||||
.toolbar {
|
||||
@@ -65,7 +66,7 @@ body {
|
||||
& > .protyle-breadcrumb,
|
||||
& > .block__icons {
|
||||
padding-left: 10px;
|
||||
padding-right: 108px;
|
||||
padding-right: 126px;
|
||||
}
|
||||
|
||||
& > .block__icons > .search__label {
|
||||
@@ -157,6 +158,18 @@ body {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.fullscreen > .protyle-breadcrumb, .fullscreen > .block__icons {
|
||||
padding-left: var(--b3-toolbar-left-mac);
|
||||
height: 42px;
|
||||
min-height: 42px;
|
||||
}
|
||||
|
||||
.toolbar__item--win,
|
||||
.toolbar__item--close {
|
||||
padding: 13.25px;
|
||||
height: 42px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -35,21 +35,24 @@ export const fullscreen = (element: Element, btnElement?: Element) => {
|
||||
element.classList.add("fullscreen");
|
||||
document.getElementById("drag")?.classList.add("fn__hidden");
|
||||
}
|
||||
if (isWindow()) {
|
||||
// 编辑器全屏
|
||||
/// #if !MOBILE
|
||||
const wndsTemp: Wnd[] = [];
|
||||
/// #if !MOBILE
|
||||
const isWindowMode = isWindow();
|
||||
const wndsTemp: Wnd[] = [];
|
||||
if (isWindowMode) {
|
||||
getAllWnds(window.siyuan.layout.layout, wndsTemp);
|
||||
wndsTemp.find(async item => {
|
||||
const headerElement = item.headersElement.parentElement;
|
||||
if (headerElement.getBoundingClientRect().top <= 0) {
|
||||
// @ts-ignore
|
||||
(headerElement.querySelector(".item--readonly .fn__flex-1") as HTMLElement).style.WebkitAppRegion = isFullscreen ? "drag" : "";
|
||||
return true;
|
||||
}
|
||||
});
|
||||
/// #endif
|
||||
} else if (window.siyuan.config.appearance.hideToolbar) {
|
||||
getAllWnds(window.siyuan.layout.centerLayout, wndsTemp);
|
||||
}
|
||||
wndsTemp.find(item => {
|
||||
const headerElement = item.headersElement.parentElement;
|
||||
if (headerElement.getBoundingClientRect().top <= 0) {
|
||||
((headerElement.querySelector(".item--readonly .fn__flex-1") as HTMLElement).style as CSSStyleDeclarationElectron).WebkitAppRegion =
|
||||
isFullscreen ? "drag" : "";
|
||||
return true;
|
||||
}
|
||||
});
|
||||
/// #endif
|
||||
|
||||
/// #if !MOBILE
|
||||
if ("darwin" !== window.siyuan.config.system.os && !isWindow()) {
|
||||
const windowControlsElement = document.getElementById("windowControls");
|
||||
|
||||
@@ -22,7 +22,7 @@ export const setTabPosition = () => {
|
||||
}
|
||||
|
||||
const centerRect = (isWindowMode ? window.siyuan.layout.layout : window.siyuan.layout.centerLayout).element.getBoundingClientRect();
|
||||
const dragRect = document.getElementById("drag")?.getBoundingClientRect();
|
||||
const dragRect = document.getElementById("drag")?.getBoundingClientRect() || { left: 0, right: 0 };
|
||||
const paddingLeft = ("darwin" === window.siyuan.config.system.os && isWindowMode) ?
|
||||
parseInt(getComputedStyle(document.body).getPropertyValue("--b3-toolbar-left-mac")) : dragRect.left - centerRect.left;
|
||||
const paddingRight = isWindowMode ?
|
||||
|
||||
Reference in New Issue
Block a user