mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-29 21:08:49 +01:00
🎨 文档切换优化
This commit is contained in:
parent
ec8f27f5fe
commit
0b50bdf6a8
2 changed files with 4 additions and 5 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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>`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue