aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'webui/src/components')
-rw-r--r--webui/src/components/Label.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/webui/src/components/Label.tsx b/webui/src/components/Label.tsx
index e719eee0..a1d3c6f9 100644
--- a/webui/src/components/Label.tsx
+++ b/webui/src/components/Label.tsx
@@ -26,21 +26,22 @@ const createStyle = (color: Color, maxWidth?: string) => ({
backgroundColor: _rgb(color),
color: getTextColor(_rgb(color)),
borderBottomColor: darken(_rgb(color), 0.2),
- margin: '3px',
maxWidth: maxWidth,
});
type Props = {
label: LabelFragment;
maxWidth?: string;
+ className?: string;
};
-function Label({ label, maxWidth }: Props) {
+function Label({ label, maxWidth, className }: Props) {
return (
<Chip
size={'small'}
label={label.name}
+ className={className}
style={createStyle(label.color, maxWidth)}
- ></Chip>
+ />
);
}
export default Label;