Skip to content

Commit 9165547

Browse files
Merge pull request #661 from zendesk/kristkvch/title-truncation
fix: apply word-break to prevent overflow
2 parents e2cd712 + e6138c2 commit 9165547

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/modules/service-catalog/components/service-catalog-item/CollapsibleDescription.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ const DescriptionWrapper = styled.div`
2222
const ItemTitle = styled(XXXL)`
2323
font-weight: ${(props) => props.theme.fontWeights.semibold};
2424
margin-bottom: 0;
25+
overflow-wrap: break-word;
26+
max-width: 100%;
2527
`;
2628

2729
const CollapsibleText = styled.div<{ isCollapsed: boolean }>`
@@ -32,6 +34,7 @@ const CollapsibleText = styled.div<{ isCollapsed: boolean }>`
3234
overflow: hidden;
3335
margin-top: ${(props) => props.theme.space.md};
3436
padding-inline-end: ${(props) => props.theme.space.xl};
37+
overflow-wrap: break-word;
3538
3639
@media (max-width: ${(props) => props.theme.breakpoints.md}) {
3740
padding-inline-end: 0;

src/modules/service-catalog/components/service-catalog-item/ItemRequestForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ const LeftColumn = styled.div`
7272
flex-direction: column;
7373
gap: ${(props) => props.theme.space.lg};
7474
margin-inline-end: ${(props) => props.theme.space.xl};
75+
min-width: 0;
7576
7677
@media (max-width: ${(props) => props.theme.breakpoints.md}) {
7778
margin-inline-end: 0;

0 commit comments

Comments
 (0)