Skip to content

Build your personal knowledge base with Trilium Notes

feat(book_properties): improve layout & accessibility

Elian Doran430ed78d8556
diff --git a/apps/client/src/widgets/ribbon_widgets/book_properties.ts b/apps/client/src/widgets/ribbon_widgets/book_properties.ts
index c48fc6d6b3..71030dbccd 100644
--- a/apps/client/src/widgets/ribbon_widgets/book_properties.ts
+++ b/apps/client/src/widgets/ribbon_widgets/book_properties.ts
@@ -19,6 +19,7 @@ const TPL = /*html*/`
.book-properties-container {
display: flex;
+ align-items: center;
}
.book-properties-container > * {
diff --git a/apps/client/src/widgets/ribbon_widgets/book_properties_config.ts b/apps/client/src/widgets/ribbon_widgets/book_properties_config.ts
index a75fc4d0a4..ff4372da37 100644
--- a/apps/client/src/widgets/ribbon_widgets/book_properties_config.ts
+++ b/apps/client/src/widgets/ribbon_widgets/book_properties_config.ts
@@ -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}`);