Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
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.jsindex 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");