mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-30 19:52:28 +08:00
client: tweak the editability dropdown
This commit is contained in:
parent
93ee8ea3af
commit
2ddac39b65
@ -14,10 +14,14 @@ const TPL = `
|
|||||||
}
|
}
|
||||||
|
|
||||||
.editability-dropdown .dropdown-item {
|
.editability-dropdown .dropdown-item {
|
||||||
display: block !important;
|
display: flex !importamt;
|
||||||
}
|
}
|
||||||
|
|
||||||
.editability-dropdown .dropdown-item div {
|
.editability-dropdown .dropdown-item > div {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editability-dropdown .description {
|
||||||
font-size: small;
|
font-size: small;
|
||||||
color: var(--muted-text-color);
|
color: var(--muted-text-color);
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
@ -30,18 +34,24 @@ const TPL = `
|
|||||||
<div class="editability-dropdown dropdown-menu dropdown-menu-right tn-dropdown-list">
|
<div class="editability-dropdown dropdown-menu dropdown-menu-right tn-dropdown-list">
|
||||||
<a class="dropdown-item" href="#" data-editability="auto">
|
<a class="dropdown-item" href="#" data-editability="auto">
|
||||||
<span class="check">✓</span>
|
<span class="check">✓</span>
|
||||||
${t("editability_select.auto")}
|
<div>
|
||||||
<div>${t("editability_select.note_is_editable")}</div>
|
${t("editability_select.auto")}
|
||||||
|
<div class="description">${t("editability_select.note_is_editable")}</div>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a class="dropdown-item" href="#" data-editability="readOnly">
|
<a class="dropdown-item" href="#" data-editability="readOnly">
|
||||||
<span class="check">✓</span>
|
<span class="check">✓</span>
|
||||||
${t("editability_select.read_only")}
|
<div>
|
||||||
<div>${t("editability_select.note_is_read_only")}</div>
|
${t("editability_select.read_only")}
|
||||||
|
<div class="description">${t("editability_select.note_is_read_only")}</div>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a class="dropdown-item" href="#" data-editability="autoReadOnlyDisabled">
|
<a class="dropdown-item" href="#" data-editability="autoReadOnlyDisabled">
|
||||||
<span class="check">✓</span>
|
<span class="check">✓</span>
|
||||||
${t("editability_select.always_editable")}
|
<div>
|
||||||
<div>${t("editability_select.note_is_always_editable")}</div>
|
${t("editability_select.always_editable")}
|
||||||
|
<div class="description">${t("editability_select.note_is_always_editable")}</div>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user