Skip to content

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

:art: Use div wrappers for OCR threshold rows https://github.com/siyuan-note/siyuan/issues/20082

Daniel70bb25f915d9
diff --git a/app/src/config/ocr.ts b/app/src/config/ocr.ts
index 746ec57af9..8c1c0150b9 100644
--- a/app/src/config/ocr.ts
+++ b/app/src/config/ocr.ts
@@ -69,8 +69,8 @@ export const registerOCRTab = (tab: SettingTabBuilder) => {
thresholds.slot({
key: `ocrThreshold_${field.key}`,
keywords: [field.title, languages.ocrThresholdsTip],
- html: () => `<label class="fn__flex b3-label config-item">${genConfigItemMainHtml(field.title, field.key === "detection" ? languages.ocrThresholdsTip : undefined)}
-<span class="fn__space"></span>${genNumberInputHtml(`ocrThreshold_${field.key}`, "", 0, 1, "any")}</label>`,
+ html: () => `<div class="fn__flex b3-label config-item">${genConfigItemMainHtml(`<label for="ocrThreshold_${field.key}">${field.title}</label>`, field.key === "detection" ? languages.ocrThresholdsTip : undefined)}
+<span class="fn__space"></span>${genNumberInputHtml(`ocrThreshold_${field.key}`, "", 0, 1, "any")}</div>`,
});
});
tab.group("models", languages.ocrImportModels).slot({