Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
client/options/text notes/table of contents: specify the measurement unit inside of the input field
Adorian Dorande7b7e3d8fa2
diff --git a/src/public/app/widgets/type_widgets/options/text_notes/table_of_contents.ts b/src/public/app/widgets/type_widgets/options/text_notes/table_of_contents.tsindex 87ebae17f7..c294722061 100644--- a/src/public/app/widgets/type_widgets/options/text_notes/table_of_contents.ts+++ b/src/public/app/widgets/type_widgets/options/text_notes/table_of_contents.ts@@ -9,7 +9,10 @@ const TPL = `${t("table_of_contents.description")}<div class="form-group">- <input type="number" class="min-toc-headings form-control options-number-input options-number-input" min="0" max="9999999999999999" step="1" />+ <div class="input-group">+ <input type="number" class="min-toc-headings form-control options-number-input options-number-input" min="0" max="9999999999999999" step="1" />+ <span class="input-group-text">${t("table_of_contents.unit")}</span>+ </div></div><p class="form-text">${t("table_of_contents.disable_info")}</p>diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.jsonindex 0b6b9179c2..72e4eba898 100644--- a/src/public/translations/en/translation.json+++ b/src/public/translations/en/translation.json@@ -1224,6 +1224,7 @@"table_of_contents": {"title": "Table of Contents","description": "Table of contents will appear in text notes when the note has more than a defined number of headings. You can customize this number:",+ "unit": "headings","disable_info": "You can also use this option to effectively disable TOC by setting a very high number.","shortcut_info": "You can configure a keyboard shortcut for quickly toggling the right pane (including TOC) in the Options -> Shortcuts (name 'toggleRightPane')."},diff --git a/src/public/translations/ro/translation.json b/src/public/translations/ro/translation.jsonindex 32eb97ee10..0638b90800 100644--- a/src/public/translations/ro/translation.json+++ b/src/public/translations/ro/translation.json@@ -1220,6 +1220,7 @@},"table_of_contents": {"description": "Tabela de conținut va apărea în notițele de tip text atunci când notița are un număr de titluri mai mare decât cel definit. Acest număr se poate personaliza:",+ "unit": "titluri","disable_info": "De asemenea se poate dezactiva tabela de conținut setând o valoare foarte mare.","shortcut_info": "Se poate configura și o scurtatură pentru a comuta rapid vizibilitatea panoului din dreapta (inclusiv tabela de conținut) în Opțiuni -> Scurtături (denumirea „toggleRightPane”).","title": "Tabelă de conținut"