mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-31 11:49:01 +08:00
style(next): promoted attributes widget: tweak checkboxes
This commit is contained in:
parent
e93d47f664
commit
ee2d4c6830
@ -226,6 +226,9 @@ export default class PromotedAttributesWidget extends NoteContextAwareWidget {
|
||||
} else if (definition.labelType === "boolean") {
|
||||
$input.prop("type", "checkbox");
|
||||
|
||||
$input.wrap($(`<label class="tn-checkbox"></label>`));
|
||||
$wrapper.find(".input-group").removeClass("input-group");
|
||||
|
||||
if (valueAttr.value === "true") {
|
||||
$input.prop("checked", "checked");
|
||||
}
|
||||
|
@ -1878,6 +1878,13 @@ div.promoted-attribute-cell input {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
div.promoted-attribute-cell .tn-checkbox {
|
||||
--box-label-gap: 0;
|
||||
|
||||
height: 1cap;
|
||||
margin: 0 1em;
|
||||
}
|
||||
|
||||
div.promoted-attribute-cell .multiplicity {
|
||||
--icon-button-size: 28px;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user