mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 19:41:05 +08:00
This commit is contained in:
parent
c49d7e1d2a
commit
677eca9b58
@ -111,12 +111,17 @@
|
||||
box-sizing: border-box;
|
||||
min-height: 30px;
|
||||
|
||||
&__space {
|
||||
flex: 1;
|
||||
min-width: 8px;
|
||||
transition: var(--b3-transition);
|
||||
}
|
||||
|
||||
&__bar {
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
display: flex;
|
||||
transition: var(--b3-transition);
|
||||
margin-right: 8px;
|
||||
overflow: auto;
|
||||
min-height: 30px;
|
||||
|
||||
|
@ -64,10 +64,6 @@ body {
|
||||
padding-left: 10px;
|
||||
padding-right: 108px;
|
||||
}
|
||||
|
||||
.protyle-breadcrumb > .fn__flex-shrink {
|
||||
-webkit-app-region: drag;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -103,6 +103,16 @@ progressLoading: 400
|
||||
padding-left: 69px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.protyle-breadcrumb > .protyle-breadcrumb__space {
|
||||
-webkit-app-region: drag;
|
||||
min-width: 32px;
|
||||
|
||||
&:hover {
|
||||
border-radius: 16px;
|
||||
background-color: var(--b3-theme-surface-light);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.custom-attr {
|
||||
|
@ -34,7 +34,7 @@ export class Breadcrumb {
|
||||
const element = document.createElement("div");
|
||||
element.className = "protyle-breadcrumb";
|
||||
let html = `<div class="protyle-breadcrumb__bar"></div>
|
||||
<span class="fn__flex-1 fn__flex-shrink"></span>
|
||||
<span class="protyle-breadcrumb__space"></span>
|
||||
<button class="b3-tooltips b3-tooltips__w block__icon fn__flex-center" style="opacity: 1;" data-menu="true" aria-label="${window.siyuan.languages.more}"><svg><use xlink:href="#iconMore"></use></svg></button>`;
|
||||
if (protyle.options.render.breadcrumbContext) {
|
||||
html += `<span class="fn__space"></span>
|
||||
@ -116,7 +116,7 @@ export class Breadcrumb {
|
||||
/// #if !BROWSER
|
||||
if ("windows" !== window.siyuan.config.system.os && "linux" !== window.siyuan.config.system.os) {
|
||||
const currentWindow = getCurrentWindow();
|
||||
element.querySelector(".fn__flex-shrink").addEventListener("dblclick", (event) => {
|
||||
element.querySelector(".protyle-breadcrumb__space").addEventListener("dblclick", (event) => {
|
||||
if (hasClosestByClassName(event.target as HTMLElement, "fullscreen")) {
|
||||
if (currentWindow.isMaximized()) {
|
||||
currentWindow.unmaximize();
|
||||
|
Loading…
Reference in New Issue
Block a user