mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-30 00:51:30 +08:00
feat(settings): make duration selector slightly smaller
This commit is contained in:
parent
e79c742d56
commit
4b9667b756
@ -15,7 +15,7 @@ const TPL = `
|
|||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
<input id="erase-entities-after-time" class="form-control options-number-input" type="number" min="0" steps="1" required>
|
<input id="erase-entities-after-time" class="form-control options-number-input" type="number" min="0" steps="1" required>
|
||||||
<!-- TriliumNextTODO: i18n the strings when refactoring this to a standalone widget -->
|
<!-- TriliumNextTODO: i18n the strings when refactoring this to a standalone widget -->
|
||||||
<select id="erase-entities-after-time-scale" class="form-select" required>
|
<select id="erase-entities-after-time-scale" class="form-select duration-selector" required>
|
||||||
<option value="1">${t("duration.seconds")}</option>
|
<option value="1">${t("duration.seconds")}</option>
|
||||||
<option value="60">${t("duration.minutes")}</option>
|
<option value="60">${t("duration.minutes")}</option>
|
||||||
<option value="3600">${t("duration.hours")}</option>
|
<option value="3600">${t("duration.hours")}</option>
|
||||||
@ -27,6 +27,12 @@ const TPL = `
|
|||||||
<p>${t("note_erasure_timeout.manual_erasing_description")}</p>
|
<p>${t("note_erasure_timeout.manual_erasing_description")}</p>
|
||||||
|
|
||||||
<button id="erase-deleted-notes-now-button" class="btn btn-secondary">${t("note_erasure_timeout.erase_deleted_notes_now")}</button>
|
<button id="erase-deleted-notes-now-button" class="btn btn-secondary">${t("note_erasure_timeout.erase_deleted_notes_now")}</button>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.duration-selector {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</div>`;
|
</div>`;
|
||||||
|
|
||||||
export default class NoteErasureTimeoutOptions extends OptionsWidget {
|
export default class NoteErasureTimeoutOptions extends OptionsWidget {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user