Skip to content

Commit 1e5c4c9

Browse files
fix: wrap long words in pinned items titles into multiple lines (#3870)
1 parent 942eb75 commit 1e5c4c9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/me/components/PinnedItems.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ $dashboard-grid-gap: $cf-space-2xs;
2323
background: $cf-grey-25;
2424
}
2525

26+
.pinneditems--link {
27+
word-break: break-word;
28+
max-width: fit-content;
29+
}
30+
2631
@media screen and (max-width: $cf-grid--breakpoint-md) {
2732
.pinneditems--container {
2833
grid-template-columns: minmax(0px, 1fr);

src/me/components/PinnedItems.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ const PinnedItems: FC = () => {
112112
name={item.metadata.name ?? ''}
113113
onClick={() => followMetadataToRoute(item)}
114114
testID="pinneditems--link"
115+
className="pinneditems--link"
115116
/>
116117
</ResourceCard>
117118
))

0 commit comments

Comments
 (0)