Skip to content

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

:art: Remove redundant incompatible theme tooltip https://github.com/siyuan-note/siyuan/issues/13855

Daniela122f017e386
diff --git a/app/src/config/bazaar.ts b/app/src/config/bazaar.ts
index 253bdec6cd..5cc4f7beca 100644
--- a/app/src/config/bazaar.ts
+++ b/app/src/config/bazaar.ts
@@ -304,8 +304,10 @@ export const bazaar = {
if (!incompatible) {
return "";
}
- const tip = bazaarType === "themes" ? window.siyuan.languages.incompatible : window.siyuan.languages.incompatiblePluginTip;
- return `<span class="fn__space"></span><span data-position="north" class="fn__flex-center ariaLabel b3-chip b3-chip--error b3-chip--small" aria-label="${tip}">${window.siyuan.languages.incompatible}</span>`;
+ const tooltip = bazaarType === "themes" ? "" :
+ ` data-position="north" aria-label="${window.siyuan.languages.incompatiblePluginTip}"`;
+ const tooltipClass = bazaarType === "themes" ? "" : " ariaLabel";
+ return `<span class="fn__space"></span><span${tooltip} class="fn__flex-center${tooltipClass} b3-chip b3-chip--error b3-chip--small">${window.siyuan.languages.incompatible}</span>`;
},
_getDetailKey(bazaarType: TBazaarType, packageName: string) {
return `${bazaarType}:${packageName}`;