mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
feat(book_properties): improve layout & accessibility
This commit is contained in:
@@ -19,6 +19,7 @@ const TPL = /*html*/`
|
|||||||
|
|
||||||
.book-properties-container {
|
.book-properties-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.book-properties-container > * {
|
.book-properties-container > * {
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export function renderBookProperty(property: BookProperty, note: FNote) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
$checkbox.prop("checked", note.hasOwnedLabel(property.bindToLabel));
|
$checkbox.prop("checked", note.hasOwnedLabel(property.bindToLabel));
|
||||||
$container.prepend($checkbox);
|
$label.prepend($checkbox);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Error(`Unknown property type: ${property.type}`);
|
throw new Error(`Unknown property type: ${property.type}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user