Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 121ee2b

Browse files
Merge pull request #28 from thefringeninja/no-taco-bell-wrap
fixed ugly header alignement
2 parents b81766a + 9ea87d4 commit 121ee2b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/stream-store/Viewer/HalViewer/components/StreamHeader.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
import { Table } from 'components';
2-
import React from 'react';
2+
import React, { CSSProperties } from 'react';
3+
4+
const nowrap: CSSProperties = { whiteSpace: 'nowrap' };
35

46
const StreamHeader = () => (
57
<Table.Head>
68
<Table.Row>
7-
<Table.Cell>{'StreamId'}</Table.Cell>
8-
<Table.Cell>{'Message Id'}</Table.Cell>
9-
<Table.Cell>{'Created UTC'}</Table.Cell>
10-
<Table.Cell>{'Type'}</Table.Cell>
9+
<Table.Cell style={nowrap}>{'Stream Id'}</Table.Cell>
10+
<Table.Cell style={nowrap}>{'Message Id'}</Table.Cell>
11+
<Table.Cell style={nowrap}>{'Created UTC'}</Table.Cell>
12+
<Table.Cell style={nowrap}>{'Type'}</Table.Cell>
1113
<Table.Cell style={{ width: '100%' }}>
1214
{'Stream Id@Version'}
1315
</Table.Cell>
14-
<Table.Cell>{'Position'}</Table.Cell>
16+
<Table.Cell style={nowrap}>{'Position'}</Table.Cell>
1517
</Table.Row>
1618
</Table.Head>
1719
);

0 commit comments

Comments
 (0)