minor ui improvements
This commit is contained in:
@@ -105,9 +105,9 @@ const toneStyles: Record<
|
||||
};
|
||||
|
||||
const sizeClasses: Record<BadgeSize, string> = {
|
||||
xs: "h-5 px-2 text-[11px] leading-tight",
|
||||
sm: "h-6 px-2.5 text-xs leading-tight",
|
||||
md: "h-7 px-3 text-sm leading-tight",
|
||||
xs: "min-h-[20px] px-2.5 py-1 text-[11px] leading-[1.4]",
|
||||
sm: "min-h-[24px] px-3 py-1 text-xs leading-[1.4]",
|
||||
md: "min-h-[28px] px-3.5 py-1.5 text-sm leading-[1.4]",
|
||||
};
|
||||
|
||||
const Badge: React.FC<BadgeProps> = ({
|
||||
@@ -152,7 +152,7 @@ const Badge: React.FC<BadgeProps> = ({
|
||||
return (
|
||||
<span
|
||||
className={clsx(
|
||||
"inline-flex items-center justify-center gap-1 rounded-full font-normal",
|
||||
"inline-flex items-center justify-center gap-1 rounded font-normal",
|
||||
sizeClasses[size],
|
||||
toneClass,
|
||||
className,
|
||||
|
||||
Reference in New Issue
Block a user