浏览代码

:lipstick: https://github.com/siyuan-note/siyuan/issues/7827

Vanessa 2 年之前
父节点
当前提交
ce586883ef
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/src/util/globalShortcut.ts

+ 2 - 2
app/src/util/globalShortcut.ts

@@ -465,7 +465,7 @@ export const globalShortcut = () => {
             }
             let dockHtml = "";
             if (!isTabWindow) {
-                dockHtml = '<ul class="b3-list b3-list--background" style="max-height: calc(70vh - 35px)">';
+                dockHtml = '<ul class="b3-list b3-list--background" style="max-height: calc(70vh - 35px);overflow: auto">';
                 getAllDocks().forEach((item, index) => {
                     dockHtml += `<li data-type="${item.type}" data-index="${index}" class="b3-list-item${(!tabHtml && !dockHtml) ? " b3-list-item--focus" : ""}">
     <svg class="b3-list-item__graphic"><use xlink:href="#${item.icon}"></use></svg>
@@ -963,7 +963,7 @@ ${unicode2Emoji(item.icon || Constants.SIYUAN_IMAGE_FILE, false, "b3-list-item__
         });
         let dockHtml = "";
         if (!isWindow()) {
-            dockHtml = '<ul class="b3-list b3-list--background" style="max-height: calc(70vh - 35px)">';
+            dockHtml = '<ul class="b3-list b3-list--background" style="max-height: calc(70vh - 35px);overflow: auto">';
             getAllDocks().forEach((item, index) => {
                 dockHtml += `<li data-type="${item.type}" data-index="${index}" class="b3-list-item${(!tabHtml && !dockHtml) ? " b3-list-item--focus" : ""}">
     <svg class="b3-list-item__graphic"><use xlink:href="#${item.icon}"></use></svg>