Skip to content

Commit

Permalink
Update user-property.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Dec 15, 2024
1 parent b453b32 commit d518d43
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions packages/project-editor/flow/user-property.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,9 @@ export const UserPropertyValuesProperty = observer(
.values;

return this.properties.map(propertyInfo => (
<tr
<div
key={propertyInfo.name}
className={classNames({
className={classNames("EezStudio_PropertyGrid_Property", {
inError: isPropertyInError(
userPropertyValues,
propertyInfo.name
Expand All @@ -446,12 +446,13 @@ export const UserPropertyValuesProperty = observer(
)
})}
>
<td>
<span title={propertyInfo.expressionType}>
{propertyInfo.displayName as string}{" "}
</span>
</td>
<td style={{ width: "100%" }}>
<div
className="property-name"
title={propertyInfo.expressionType}
>
{propertyInfo.displayName as string}
</div>
<div style={{ width: "100%" }}>
<ProjectEditor.Property
key={propertyInfo.name}
propertyInfo={propertyInfo}
Expand All @@ -467,8 +468,8 @@ export const UserPropertyValuesProperty = observer(
}}
readOnly={false}
/>
</td>
</tr>
</div>
</div>
));
}
}
Expand Down

0 comments on commit d518d43

Please sign in to comment.