Skip to content

Commit d518d43

Browse files
committed
Update user-property.tsx
1 parent b453b32 commit d518d43

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

packages/project-editor/flow/user-property.tsx

+11-10
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,9 @@ export const UserPropertyValuesProperty = observer(
433433
.values;
434434

435435
return this.properties.map(propertyInfo => (
436-
<tr
436+
<div
437437
key={propertyInfo.name}
438-
className={classNames({
438+
className={classNames("EezStudio_PropertyGrid_Property", {
439439
inError: isPropertyInError(
440440
userPropertyValues,
441441
propertyInfo.name
@@ -446,12 +446,13 @@ export const UserPropertyValuesProperty = observer(
446446
)
447447
})}
448448
>
449-
<td>
450-
<span title={propertyInfo.expressionType}>
451-
{propertyInfo.displayName as string}{" "}
452-
</span>
453-
</td>
454-
<td style={{ width: "100%" }}>
449+
<div
450+
className="property-name"
451+
title={propertyInfo.expressionType}
452+
>
453+
{propertyInfo.displayName as string}
454+
</div>
455+
<div style={{ width: "100%" }}>
455456
<ProjectEditor.Property
456457
key={propertyInfo.name}
457458
propertyInfo={propertyInfo}
@@ -467,8 +468,8 @@ export const UserPropertyValuesProperty = observer(
467468
}}
468469
readOnly={false}
469470
/>
470-
</td>
471-
</tr>
471+
</div>
472+
</div>
472473
));
473474
}
474475
}

0 commit comments

Comments
 (0)