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
chore(promoted_attributes): address review
Elian Doran7f909fa09854
diff --git a/apps/client/src/widgets/PromotedAttributes.css b/apps/client/src/widgets/PromotedAttributes.cssindex 2e1cab3dde..6e3c7795d1 100644--- a/apps/client/src/widgets/PromotedAttributes.css+++ b/apps/client/src/widgets/PromotedAttributes.css@@ -15,12 +15,13 @@ body.mobile .promoted-attributes-widget {flex-wrap: wrap;display: table;}+.promoted-attribute-cell {display: flex;align-items: center;margin: 10px;- display: table-row;}+.promoted-attribute-cell > label {user-select: none;font-weight: bold;diff --git a/apps/client/src/widgets/PromotedAttributes.tsx b/apps/client/src/widgets/PromotedAttributes.tsxindex b7ffca0602..f24cd7d60e 100644--- a/apps/client/src/widgets/PromotedAttributes.tsx+++ b/apps/client/src/widgets/PromotedAttributes.tsx@@ -180,7 +180,7 @@ function LabelInput({ inputId, ...props }: CellProps & { inputId: string }) {setupTextLabelAutocomplete(el as HTMLInputElement, valueAttr, onChangeListener);}}- }, []);+ }, [ inputId, valueAttr, onChangeListener ]);switch (definition.labelType) {case "number": {