mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-12 03:32:30 +08:00
client: use combo box-like dropdown buttons in the "Basic Properties" widget
This commit is contained in:
parent
0339d83434
commit
a184d5bb26
@ -8,14 +8,14 @@ const TPL = `
|
|||||||
.editability-dropdown {
|
.editability-dropdown {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.editability-dropdown .dropdown-item div {
|
.editability-dropdown .dropdown-item div {
|
||||||
font-size: small;
|
font-size: small;
|
||||||
color: var(--muted-text-color);
|
color: var(--muted-text-color);
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<button type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn btn-sm dropdown-toggle editability-button">
|
<button type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn btn-sm dropdown-toggle select-button editability-button">
|
||||||
<span class="editability-active-desc">${t("editability_select.auto")}</span>
|
<span class="editability-active-desc">${t("editability_select.auto")}</span>
|
||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
</button>
|
</button>
|
||||||
@ -23,7 +23,7 @@ const TPL = `
|
|||||||
<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")}
|
${t("editability_select.auto")}
|
||||||
<div>${t("editability_select.note_is_editable")}</div>
|
<div>${t("editability_select.note_is_editable")}</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>
|
||||||
|
@ -35,7 +35,7 @@ const TPL = `
|
|||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<button type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn btn-sm dropdown-toggle note-type-button">
|
<button type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn btn-sm dropdown-toggle select-button note-type-button">
|
||||||
<span class="note-type-desc"></span>
|
<span class="note-type-desc"></span>
|
||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
</button>
|
</button>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user