Skip to content

Commit 135d43e

Browse files
authored
FE: Add whitespace after readonly cluster name tag (#1458)
1 parent 0d152a9 commit 135d43e

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

frontend/src/components/Dashboard/ClusterName.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ const ClusterName: React.FC<ClusterNameProps> = ({ row }) => {
99
const { readOnly, name } = row.original;
1010
return (
1111
<div style={{ wordBreak: 'break-word', whiteSpace: 'pre-wrap' }}>
12-
{readOnly && <Tag color="blue">readonly</Tag>}
12+
{readOnly && (
13+
<Tag color="blue" style={{ marginRight: '0.75em' }}>
14+
readonly
15+
</Tag>
16+
)}
1317
{name}
1418
</div>
1519
);

frontend/src/components/Topics/List/TopicTitleCell.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ export const TopicTitleCell: React.FC<CellContext<Topic, unknown>> = ({
1515
style={{ wordBreak: 'break-word', whiteSpace: 'pre-wrap' }}
1616
>
1717
{internal && (
18-
<>
19-
<Tag color="gray">IN</Tag>
20-
&nbsp;
21-
</>
18+
<Tag color="gray" style={{ marginRight: '0.75em' }}>
19+
IN
20+
</Tag>
2221
)}
2322
{name}
2423
</NavLink>

0 commit comments

Comments
 (0)