chore(promoted_attributes): address review

This commit is contained in:
Elian Doran 2025-11-23 16:28:57 +02:00
parent 320f064775
commit 7f909fa098
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -15,12 +15,13 @@ body.mobile .promoted-attributes-widget {
flex-wrap: wrap; flex-wrap: wrap;
display: table; display: table;
} }
.promoted-attribute-cell { .promoted-attribute-cell {
display: flex; display: flex;
align-items: center; align-items: center;
margin: 10px; margin: 10px;
display: table-row;
} }
.promoted-attribute-cell > label { .promoted-attribute-cell > label {
user-select: none; user-select: none;
font-weight: bold; font-weight: bold;

View File

@ -180,7 +180,7 @@ function LabelInput({ inputId, ...props }: CellProps & { inputId: string }) {
setupTextLabelAutocomplete(el as HTMLInputElement, valueAttr, onChangeListener); setupTextLabelAutocomplete(el as HTMLInputElement, valueAttr, onChangeListener);
} }
} }
}, []); }, [ inputId, valueAttr, onChangeListener ]);
switch (definition.labelType) { switch (definition.labelType) {
case "number": { case "number": {