Skip to content

Build your personal knowledge base with Trilium Notes

chore(promoted_attributes): address review

Elian Doran7f909fa09854
diff --git a/apps/client/src/widgets/PromotedAttributes.css b/apps/client/src/widgets/PromotedAttributes.css
index 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.tsx
index 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": {