🎨 文档切换优化

This commit is contained in:
Vanessa 2022-12-12 22:35:14 +08:00
parent ec8f27f5fe
commit 0b50bdf6a8
2 changed files with 4 additions and 5 deletions

View file

@ -88,9 +88,7 @@
.b3-list:last-child {
border-left: 1px solid var(--b3-theme-surface-lighter);
overflow: auto;
max-width: 360px;
min-width: 200px;
max-height: calc(70vh - 35px)
}
.dialog__path {

View file

@ -416,13 +416,14 @@ export const globalShortcut = () => {
if (getSelection().rangeCount > 0) {
range = getSelection().getRangeAt(0).cloneRange();
}
hideElements(["dialog"]);
switchDialog = new Dialog({
title: window.siyuan.languages.switchTab,
content: `<div class="fn__flex-column b3-dialog--switch">
<div class="fn__hr"><input style="opacity: 0;height: 1px;box-sizing: border-box"></div>
<div class="fn__flex">
<ul class="b3-list b3-list--background" style="max-height: calc(70vh - 35px)">${dockHtml}</ul>
<ul class="b3-list b3-list--background fn__flex-1" style="max-height: calc(70vh - 35px)">${tabHtml}</ul>
<ul class="b3-list b3-list--background fn__flex-1">${tabHtml}</ul>
</div>
<div class="dialog__path"></div>
</div>`,
@ -850,7 +851,7 @@ ${unicode2Emoji(item.icon || Constants.SIYUAN_IMAGE_FILE, false, "b3-list-item__
<div class="fn__hr"><input style="opacity: 0;height: 1px;box-sizing: border-box"></div>
<div class="fn__flex">
<ul class="b3-list b3-list--background" style="max-height: calc(70vh - 35px)">${dockHtml}</ul>
<ul class="b3-list b3-list--background fn__flex-1" style="max-height: calc(70vh - 35px)">${tabHtml}</ul>
<ul class="b3-list b3-list--background fn__flex-1">${tabHtml}</ul>
</div>
<div class="dialog__path"></div>
</div>`,