瀏覽代碼

:art: fix https://github.com/siyuan-note/siyuan/issues/9926

Vanessa 1 年之前
父節點
當前提交
4c8a57ec21
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      app/src/mobile/util/initFramework.ts
  2. 1 1
      app/src/plugin/commandPanel.ts

+ 1 - 1
app/src/mobile/util/initFramework.ts

@@ -51,7 +51,7 @@ const openDockMenu = (app: App) => {
     });
     menu.fullscreen("bottom");
     if (menu.element.lastElementChild.innerHTML === "") {
-        showMessage(window.siyuan.languages.emptyContent);
+        showMessage(window.siyuan.languages._kernel[122]);
     }
 }
 

+ 1 - 1
app/src/plugin/commandPanel.ts

@@ -47,7 +47,7 @@ export const commandPanel = (app: App) => {
     if (listElement.childElementCount === 0) {
         const liElement = document.createElement("li");
         liElement.classList.add("b3-list-item", "b3-list-item--focus");
-        liElement.innerHTML = `<span class="b3-list-item__text">${isMobile() ? window.siyuan.languages.emptyContent : window.siyuan.languages.commandEmpty}</span>`;
+        liElement.innerHTML = `<span class="b3-list-item__text" style="-webkit-line-clamp: inherit;">${isMobile() ? window.siyuan.languages._kernel[122] : window.siyuan.languages.commandEmpty}</span>`;
         liElement.addEventListener("click", () => {
             dialog.destroy();
             /// #if !MOBILE