@@ -34,15 +34,15 @@ export const CapacityBar = <T extends number | bigint>({
3434 const unitElt = includeUnit ? < > { unit } </ > : null
3535
3636 return (
37- < div className = "w- full min-w-min rounded-lg border border-default lg+:max-w-[50%] " >
37+ < div className = "border-default 1000:max-w-1/2 w- full min-w-min rounded-lg border" >
3838 < div className = "flex justify-between p-3" >
3939 < TitleCell icon = { icon } title = { title } unit = { unit } />
4040 < PctCell pct = { pct } />
4141 </ div >
42- < div className = "p-3 pb-4 pt-1" >
42+ < div className = "p-3 pt-1 pb-4 " >
4343 < Bar pct = { pct } />
4444 </ div >
45- < div className = "flex justify-between border-t border-secondary " >
45+ < div className = "border-secondary flex justify-between border-t" >
4646 < ValueCell label = { provisionedLabel } value = { provisioned } unit = { unitElt } />
4747 < ValueCell label = { capacityLabel } value = { capacity } unit = { unitElt } />
4848 </ div >
@@ -55,9 +55,9 @@ function TitleCell({ icon, title, unit }: TitleCellProps) {
5555 return (
5656 < div >
5757 < div className = "flex grow items-center" >
58- < span className = "mr-2 flex h-4 w-4 items-center text-accent " > { icon } </ span >
59- < span className = "!normal-case text-mono-sm text-default" > { title } </ span >
60- < span className = "ml-1 !normal-case text-mono-sm text-tertiary" > ({ unit } )</ span >
58+ < span className = "text-accent mr-2 flex h-4 w-4 items-center" > { icon } </ span >
59+ < span className = "text-mono-sm text-default normal-case! " > { title } </ span >
60+ < span className = "text-mono-sm text-tertiary ml-1 normal-case! " > ({ unit } )</ span >
6161 </ div >
6262 </ div >
6363 )
@@ -67,8 +67,8 @@ function PctCell({ pct }: { pct: number }) {
6767 // NaN happens when both top and bottom are 0
6868 if ( Number . isNaN ( pct ) ) {
6969 return (
70- < div className = "flex -translate-y-0.5 items-baseline text-tertiary " >
71- < div className = "font-light text-sans-2xl text-raise" > —</ div >
70+ < div className = "text-tertiary flex -translate-y-0.5 items-baseline" >
71+ < div className = "text-sans-2xl text-raise font-light " > —</ div >
7272 < div className = "text-sans-xl" > %</ div >
7373 </ div >
7474 )
@@ -77,7 +77,7 @@ function PctCell({ pct }: { pct: number }) {
7777 const [ wholeNumber , decimal ] = splitDecimal ( pct )
7878 return (
7979 < div className = "flex -translate-y-0.5 items-baseline" >
80- < div className = "font-light text-sans-2xl text-raise" > { wholeNumber } </ div >
80+ < div className = "text-sans-2xl text-raise font-light " > { wholeNumber } </ div >
8181 < div className = "text-sans-xl text-tertiary" > { decimal } %</ div >
8282 </ div >
8383 )
@@ -87,10 +87,10 @@ function Bar({ pct }: { pct: number }) {
8787 return (
8888 < div className = "flex w-full gap-0.5" >
8989 < div
90- className = "h-3 rounded-l border bg-accent-secondary border-accent-secondary"
90+ className = "bg-accent-secondary border-accent-secondary h-3 rounded-l border "
9191 style = { { width : `${ pct . toFixed ( 2 ) } %` } }
9292 > </ div >
93- < div className = "h-3 grow rounded-r border bg-info-secondary border-info-secondary" > </ div >
93+ < div className = "bg-info-secondary border-info-secondary h-3 grow rounded-r border " > </ div >
9494 </ div >
9595 )
9696}
@@ -103,9 +103,9 @@ type ValueCellProps = {
103103
104104function ValueCell ( { label, value, unit } : ValueCellProps ) {
105105 return (
106- < div className = "p-3 text-mono-sm" >
107- < div className = "mb-px text-tertiary" > { label } </ div >
108- < div className = "!normal-case text-default" >
106+ < div className = "text-mono-sm p-3 " >
107+ < div className = "text-tertiary mb-px " > { label } </ div >
108+ < div className = "text-default normal-case! " >
109109 < BigNum num = { value } />
110110 { unit }
111111 </ div >
0 commit comments