style(next): promoted attributes widget: tweak checkboxes

This commit is contained in:
Adorian Doran 2025-02-22 01:30:55 +02:00
parent e93d47f664
commit ee2d4c6830
2 changed files with 10 additions and 0 deletions

View File

@ -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");
}

View File

@ -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;