Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 数据库表头为空

Vanessa9867e3ff0a14
diff --git a/app/src/menus/Menu.ts b/app/src/menus/Menu.ts
index 960730c61f..c1c087e256 100644
--- a/app/src/menus/Menu.ts
+++ b/app/src/menus/Menu.ts
@@ -212,7 +212,7 @@ export class MenuItem {
if (options.element) {
this.element.append(options.element);
} else {
- let html = `<span class="b3-menu__label">${options.label}</span>`;
+ let html = `<span class="b3-menu__label">${options.label || "&nbsp;"}</span>`;
if (typeof options.iconHTML === "string") {
html = options.iconHTML + html;
} else {
diff --git a/app/src/protyle/render/av/sort.ts b/app/src/protyle/render/av/sort.ts
index fa489362a2..085b10fc78 100644
--- a/app/src/protyle/render/av/sort.ts
+++ b/app/src/protyle/render/av/sort.ts
@@ -88,7 +88,7 @@ export const getSortsHTML = (columns: IAVColumn[], sorts: IAVSort[]) => {
const genSortItem = (id: string) => {
let sortHTML = "";
columns.forEach((item) => {
- sortHTML += `<option value="${item.id}" ${item.id === id ? "selected" : ""}>${item.name}</option>`;
+ sortHTML += `<option value="${item.id}" ${item.id === id ? "selected" : ""}>${item.icon && unicode2Emoji(item.icon)}${item.name}</option>`;
});
return sortHTML;
};
diff --git a/app/src/protyle/wysiwyg/commonHotkey.ts b/app/src/protyle/wysiwyg/commonHotkey.ts
index 68cf3ba507..639bd7954c 100644
--- a/app/src/protyle/wysiwyg/commonHotkey.ts
+++ b/app/src/protyle/wysiwyg/commonHotkey.ts
@@ -52,12 +52,6 @@ export const commonHotkey = (protyle: IProtyle, event: KeyboardEvent, nodeElemen
return true;
}
- if (matchHotKey(window.siyuan.config.keymap.editor.general.spaceRepetition.custom, event) ||
- matchHotKey(window.siyuan.config.keymap.general.dailyNote.custom, event)) {
- // 阻止输入 https://ld246.com/article/1679618995926
- event.preventDefault();
- return true;
- }
if (matchHotKey(window.siyuan.config.keymap.editor.general.copyProtocolInMd.custom, event)) {
const id = nodeElement ? nodeElement.getAttribute("data-node-id") : protyle.block.rootID;
fetchPost("/api/block/getRefText", {id}, (response) => {