Skip to content

Commit aa7a44d

Browse files
authored
chore(data-modeling): show title for relationships in the list (#7183)
1 parent 2e3d467 commit aa7a44d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/compass-data-modeling/src/components/drawer/collection-drawer-content.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,21 @@ const CollectionDrawerContent: React.FunctionComponent<
123123
) : (
124124
<ul className={relationshipsListStyles}>
125125
{relationships.map((r) => {
126+
const relationshipLabel = getDefaultRelationshipName(
127+
r.relationship
128+
);
129+
126130
return (
127131
<li
128132
key={r.id}
129133
data-relationship-id={r.id}
130134
className={relationshipItemStyles}
131135
>
132-
<span className={relationshipNameStyles}>
133-
{getDefaultRelationshipName(r.relationship)}
136+
<span
137+
className={relationshipNameStyles}
138+
title={relationshipLabel}
139+
>
140+
{relationshipLabel}
134141
</span>
135142
<IconButton
136143
aria-label="Edit relationship"

0 commit comments

Comments
 (0)