Skip to content

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

:art: tag hint

Vanessa1e982e16e017
diff --git a/app/src/protyle/hint/extend.ts b/app/src/protyle/hint/extend.ts
index c847853032..6c2b39e30c 100644
--- a/app/src/protyle/hint/extend.ts
+++ b/app/src/protyle/hint/extend.ts
@@ -295,7 +295,7 @@ export const hintTag = (key: string, protyle: IProtyle): IHintData[] => {
const value = item.replace(/<mark>/g, "").replace(/<\/mark>/g, "");
dataList.push({
value: `<span data-type="tag">${value}</span>`,
- html: item,
+ html: `<div class="b3-list-item__text">${item}</div>`,
});
if (value === response.data.k) {
hasKey = true;
@@ -304,7 +304,7 @@ export const hintTag = (key: string, protyle: IProtyle): IHintData[] => {
if (response.data.k && !hasKey) {
dataList.splice(0, 0, {
value: `<span data-type="tag">${response.data.k}</span>`,
- html: `${window.siyuan.languages.new} <mark>${escapeHtml(response.data.k)}</mark>`,
+ html: `<div class="b3-list-item__text">${window.siyuan.languages.new} <mark>${escapeHtml(response.data.k)}</mark></div>`,
});
if (dataList.length > 1) {
dataList[1].focus = true;