Skip to content

Commit 659bb05

Browse files
committed
feature/MIG-6991 Use word break instead
1 parent 7679ace commit 659bb05

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/components/node/node.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,15 @@ const NodeHeader = styled.div<{ background?: string }>`
6565
min-height: ${DEFAULT_NODE_HEADER_HEIGHT}px;
6666
padding: ${spacing[100]}px ${spacing[400]}px ${spacing[100]}px ${spacing[200]}px;
6767
background: ${props => props.background};
68-
overflow-wrap: anywhere;
68+
`;
69+
70+
export const NodeTitle = styled.div`
71+
overflow-wrap: break-word;
72+
min-width: 0;
6973
`;
7074

7175
const NodeHeaderIcon = styled.div`
7276
display: flex;
73-
flex: 0 0 ${spacing[400]}px;
7477
margin-left: ${spacing[100]}px;
7578
margin-right: ${spacing[100]}px;
7679
`;
@@ -167,7 +170,7 @@ export const Node = ({
167170
<NodeHeaderIcon>
168171
<Icon fill={theme.node.headerIcon} glyph="Drag" />
169172
</NodeHeaderIcon>
170-
<span>{title}</span>
173+
<NodeTitle>{title}</NodeTitle>
171174
</>
172175
)}
173176
</NodeHeader>

0 commit comments

Comments
 (0)