Add warning for trim spaces disabled

This commit is contained in:
Cohee 2024-09-29 01:28:02 +03:00
parent 42cfeae8ab
commit 14b48c5b34
2 changed files with 5 additions and 0 deletions

View File

@ -459,3 +459,7 @@ body.expandMessageActions .mes .mes_buttons .extraMesButtonsHint {
.mdhotkey_icon {
opacity: 0.6;
}
label[for="trim_spaces"]:has(input:checked) i.warning {
display: none;
}

View File

@ -3222,6 +3222,7 @@
<label class="checkbox_label" for="trim_spaces">
<input id="trim_spaces" type="checkbox" />
<small data-i18n="Trim spaces">Trim spaces</small>
<i class="fa-sm fa-solid fa-exclamation-triangle warning" title="Disabling is not recommended." data-i18n="[title]Disabling is not recommended."></i>
</label>
<label class="checkbox_label" for="trim_sentences_checkbox">
<input id="trim_sentences_checkbox" type="checkbox" />