client/options/text notes/table of contents: specify the measurement unit inside of the input field

This commit is contained in:
Adorian Doran 2025-03-20 17:41:30 +02:00
parent bec15fb9c3
commit de7b7e3d8f
3 changed files with 6 additions and 1 deletions

View File

@ -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>

View File

@ -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')."
},

View File

@ -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"