Skip to content

Commit 7679ace

Browse files
committed
feature/MIG-6991 Wrap text around node header
1 parent 5e26a80 commit 7679ace

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/components/node/node.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ export const FieldsWithLongValues: Story = {
103103
args: {
104104
...INTERNAL_NODE,
105105
data: {
106-
title: 'rm_demo_collection_orders_table_equivalent',
106+
title:
107+
'enterprise_tenant_finance_department_legacy_system_us_east_1_schema_2025_v15_monthly_billing_transactions_20250702145533',
107108
fields: [
108109
{
109110
name: 'customerId',

src/components/node/node.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,17 @@ const NodeHeader = styled.div<{ background?: string }>`
6262
font-size: 13px;
6363
line-height: 20px;
6464
font-weight: bold;
65-
height: ${DEFAULT_NODE_HEADER_HEIGHT}px;
65+
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-
${ellipsisTruncation};
68+
overflow-wrap: anywhere;
6969
`;
7070

7171
const NodeHeaderIcon = styled.div`
7272
display: flex;
7373
flex: 0 0 ${spacing[400]}px;
7474
margin-left: ${spacing[100]}px;
75-
`;
76-
77-
const NodeHeaderTitle = styled.div`
78-
${ellipsisTruncation}
75+
margin-right: ${spacing[100]}px;
7976
`;
8077

8178
const NodeHandle = styled(Handle)<{ ['z-index']?: number }>`
@@ -170,7 +167,7 @@ export const Node = ({
170167
<NodeHeaderIcon>
171168
<Icon fill={theme.node.headerIcon} glyph="Drag" />
172169
</NodeHeaderIcon>
173-
<NodeHeaderTitle>{title}</NodeHeaderTitle>
170+
<span>{title}</span>
174171
</>
175172
)}
176173
</NodeHeader>

0 commit comments

Comments
 (0)