Skip to content

Commit baee3dd

Browse files
committed
chore: better responsive for usage slider compact
1 parent 34df980 commit baee3dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dashboard/src/components/users/usage-slider-compact.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ const UsageSliderCompact: React.FC<UsageSliderProps> = ({ used, total = 0, statu
1818
const color = statusColors[status]?.sliderColor
1919
const { t } = useTranslation()
2020
return (
21-
<div className="flex w-full flex-col justify-between gap-y-1 text-xs font-medium text-muted-foreground">
21+
<div className="flex w-full flex-col justify-between gap-y-1 text-xs font-medium text-muted-foreground text-left">
2222
<Progress indicatorClassName={color} value={progressValue} className={cn(isMobile ? 'block' : 'hidden md:block')} />
23-
<div className="flex items-center justify-between">
24-
<span className={isMobile ? 'hidden' : ''} dir="ltr">
23+
<div className="flex items-center justify-between w-full">
24+
<span className={isMobile ? 'hidden' : 'w-full'} dir="ltr">
2525
{formatBytes(used)} / {isUnlimited ? <span className="font-system-ui"></span> : formatBytes(total)}
2626
</span>
2727
<div className={cn(isMobile ? 'block' : 'hidden md:block')}>

0 commit comments

Comments
 (0)