Skip to content

Build your personal knowledge base with Trilium Notes

fix display of checkboxes in promoted attributes, closes #1313

zadamfd2d49de4f49
diff --git a/src/public/app/widgets/promoted_attributes.js b/src/public/app/widgets/promoted_attributes.js
index 2555545852..e7c29090ef 100644
--- a/src/public/app/widgets/promoted_attributes.js
+++ b/src/public/app/widgets/promoted_attributes.js
@@ -173,6 +173,9 @@ export default class PromotedAttributesWidget extends TabAwareWidget {
}
else if (definition.labelType === 'boolean') {
$input.prop("type", "checkbox");
+ // hack, without this the checkbox is invisible
+ // we should be using a different bootstrap structure for checkboxes
+ $input.css('width', '80px');
if (valueAttr.value === "true") {
$input.prop("checked", "checked");