Skip to content

Commit d22bd61

Browse files
committed
fix: remove unnecessary workBreak
1 parent 381f2f7 commit d22bd61

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ui/src/common/TagChip.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as React from 'react';
33
// @ts-ignore
44
import bestContrast from 'get-best-contrast-color';
55

6-
export const TagChip = ({color, label, style = {}}: {label: string; color: string; style?: React.CSSProperties}) => {
6+
export const TagChip = ({color, label}: {label: string; color: string}) => {
77
const textColor = bestContrast(color, ['#fff', '#000']);
88
return (
99
<Chip
@@ -18,7 +18,6 @@ export const TagChip = ({color, label, style = {}}: {label: string; color: strin
1818
height: 'fit-content',
1919
whiteSpace: 'normal',
2020
wordBreak: 'break-word',
21-
...style,
2221
}}
2322
label={label}
2423
/>

ui/src/tag/TagPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const TagPage = () => {
9292
{isEdited ? (
9393
<SliderPicker onChange={(c) => setEditing([editKey, editKeyNew, c.hex])} color={editColor} />
9494
) : (
95-
<TagChip label={tag.color} color={tag.color} style={{wordBreak: 'normal'}} />
95+
<TagChip label={tag.color} color={tag.color} />
9696
)}
9797
</TableCell>
9898
<TableCell align="right">{tag.usages}</TableCell>

0 commit comments

Comments
 (0)