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