Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(studio): request for monospace back on query perf (#38825)

kemal.earth3f6ae4b922dd
diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx
index 0fbbd5b0e0f..52eeda41fee 100644
--- a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx
@@ -145,7 +145,7 @@ export const QueryPerformanceGrid = ({ queryPerformanceQuery }: QueryPerformance
const fillWidth = Math.min(percentage, 100)
return (
- <div className="w-full flex flex-col justify-center text-xs text-right tabular-nums">
+ <div className="w-full flex flex-col justify-center text-xs text-right tabular-nums font-mono">
<div
className={`absolute inset-0 bg-foreground transition-all duration-200 z-0`}
style={{
@@ -174,7 +174,7 @@ export const QueryPerformanceGrid = ({ queryPerformanceQuery }: QueryPerformance
if (col.id === 'total_time') {
return (
- <div className="w-full flex flex-col justify-center text-xs text-right tabular-nums">
+ <div className="w-full flex flex-col justify-center text-xs text-right tabular-nums font-mono">
{isTime && typeof value === 'number' && !isNaN(value) && isFinite(value) ? (
<p
className={cn((value / 1000).toFixed(2) === '0.00' && 'text-foreground-lighter')}
@@ -194,7 +194,7 @@ export const QueryPerformanceGrid = ({ queryPerformanceQuery }: QueryPerformance
if (col.id === 'calls') {
return (
- <div className="w-full flex flex-col justify-center text-xs text-right tabular-nums">
+ <div className="w-full flex flex-col justify-center text-xs text-right tabular-nums font-mono">
{typeof value === 'number' && !isNaN(value) && isFinite(value) ? (
<p className={cn(value === 0 && 'text-foreground-lighter')}>
{value.toLocaleString()}
@@ -208,7 +208,7 @@ export const QueryPerformanceGrid = ({ queryPerformanceQuery }: QueryPerformance
if (col.id === 'max_time' || col.id === 'mean_time' || col.id === 'min_time') {
return (
- <div className="w-full flex flex-col justify-center text-xs text-right tabular-nums">
+ <div className="w-full flex flex-col justify-center text-xs text-right tabular-nums font-mono">
{typeof value === 'number' && !isNaN(value) && isFinite(value) ? (
<p className={cn(value.toFixed(0) === '0' && 'text-foreground-lighter')}>
{Math.round(value).toLocaleString()}ms
@@ -222,7 +222,7 @@ export const QueryPerformanceGrid = ({ queryPerformanceQuery }: QueryPerformance
if (col.id === 'rows_read') {
return (
- <div className="w-full flex flex-col justify-center text-xs text-right tabular-nums">
+ <div className="w-full flex flex-col justify-center text-xs text-right tabular-nums font-mono">
{typeof value === 'number' && !isNaN(value) && isFinite(value) ? (
<p className={cn(value === 0 && 'text-foreground-lighter')}>
{value.toLocaleString()}
@@ -241,7 +241,7 @@ export const QueryPerformanceGrid = ({ queryPerformanceQuery }: QueryPerformance
if (col.id === 'cache_hit_rate') {
return (
- <div className="w-full flex flex-col justify-center text-xs text-right tabular-nums">
+ <div className="w-full flex flex-col justify-center text-xs text-right tabular-nums font-mono">
{typeof value === 'string' ? (
<p
className={cn(