mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 20:35:07 +03:00
prettier
This commit is contained in:
1 parent
819b13a818
commit
494202ab7d
1 file changed
+8
-8
@@ -320,14 +320,14 @@ export const CustomTooltip = ({
|
||||
{active && showTotal && (
|
||||
<div className="flex md:flex-col gap-1 md:gap-0 text-foreground mt-1">
|
||||
<span className="flex-grow text-foreground-lighter">Total</span>
|
||||
<div className="flex items-end gap-1">
|
||||
<span className="text-base">
|
||||
{isPercentage
|
||||
? formatPercentage(total as number, valuePrecision)
|
||||
: formatNumeric(total as number) +
|
||||
(!isPercentage && format !== 'ms' ? byteUnitSuffix : '')}
|
||||
{format === 'ms' ? 'ms' : ''}
|
||||
</span>
|
||||
<div className="flex items-end gap-1">
|
||||
<span className="text-base">
|
||||
{isPercentage
|
||||
? formatPercentage(total as number, valuePrecision)
|
||||
: formatNumeric(total as number) +
|
||||
(!isPercentage && format !== 'ms' ? byteUnitSuffix : '')}
|
||||
{format === 'ms' ? 'ms' : ''}
|
||||
</span>
|
||||
{maxValueAttribute &&
|
||||
!isPercentage &&
|
||||
!isNaN((total as number) / maxValueData?.value) &&
|
||||
|
||||
Reference in new issue
Block a user