Skip to content

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

fix(studio): remove default DataGrid borders across studio surfaces (#46448)

Alaister Youngb0d023bd04e7
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.DataGrid.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.DataGrid.tsx
index 0b37422e905..d5d3c468247 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.DataGrid.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.DataGrid.tsx
@@ -51,7 +51,7 @@ export const CronJobsTabDataGrid = ({
return (
<DataGrid
- className="grow border-t-0"
+ className="grow border-t-0! border-b-0!"
rowHeight={44}
headerRowHeight={36}
columns={columns}
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/PreviousRunsTab.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/PreviousRunsTab.tsx
index d72f87ff8b2..54ebfc7e798 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/PreviousRunsTab.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/PreviousRunsTab.tsx
@@ -183,7 +183,7 @@ export const PreviousRunsTab = () => {
<div className="h-full flex flex-col">
<LoadingLine loading={isFetching} />
<DataGrid
- className="grow border-t-0"
+ className="grow border-t-0! border-b-0!"
rowHeight={44}
headerRowHeight={36}
onScroll={handleScroll}
diff --git a/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx b/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx
index 802d7dd2f1f..c2da5eb8660 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx
@@ -124,7 +124,7 @@ export const QueuesTab = () => {
<LoadingLine loading={isLoading || isRefetching} />
<DataGrid
- className="grow border-t-0"
+ className="grow border-t-0! border-b-0!"
rowHeight={44}
headerRowHeight={36}
columns={columns}
diff --git a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueDataGrid.tsx b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueDataGrid.tsx
index 0a14db6d9fb..479fc99cc89 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueDataGrid.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueDataGrid.tsx
@@ -154,7 +154,7 @@ export const QueueMessagesDataGrid = ({
<div className="relative h-full">
<DataGrid
ref={gridRef}
- className="h-full"
+ className="h-full border-t-0! border-b-0!"
rowHeight={44}
headerRowHeight={36}
columns={columns}
diff --git a/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretsManagement.tsx b/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretsManagement.tsx
index 2d0b9b96347..986dcf9f02b 100644
--- a/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretsManagement.tsx
+++ b/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretsManagement.tsx
@@ -179,7 +179,7 @@ export const SecretsManagement = () => {
</div>
) : (
<DataGrid
- className="grow border-t-0"
+ className="grow border-t-0! border-b-0!"
rowHeight={52}
headerRowHeight={36}
columns={columns}
diff --git a/apps/studio/components/interfaces/Linter/LinterDataGrid.tsx b/apps/studio/components/interfaces/Linter/LinterDataGrid.tsx
index 53d36a44a0b..ac576fa1e24 100644
--- a/apps/studio/components/interfaces/Linter/LinterDataGrid.tsx
+++ b/apps/studio/components/interfaces/Linter/LinterDataGrid.tsx
@@ -131,7 +131,7 @@ export const LinterDataGrid = ({
<DataGrid
ref={gridRef}
style={{ height: '100%' }}
- className={cn('flex-1 grow h-full')}
+ className={cn('flex-1 grow h-full border-t-0! border-b-0!')}
rowHeight={44}
headerRowHeight={36}
columns={columns}
diff --git a/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsTable.tsx b/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsTable.tsx
index 33b098a2525..d4868800048 100644
--- a/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsTable.tsx
+++ b/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsTable.tsx
@@ -5,7 +5,6 @@ import { Search, TextSearch, X } from 'lucide-react'
import { useRouter } from 'next/router'
import { parseAsArrayOf, parseAsString, useQueryStates } from 'nuqs'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
-// eslint-disable-next-line no-restricted-imports
import DataGrid, { DataGridHandle, Row } from 'react-data-grid'
import { Button, cn, Tabs_Shadcn_, TabsList_Shadcn_, TabsTrigger_Shadcn_ } from 'ui'
import { Input } from 'ui-patterns/DataInputs/Input'
@@ -453,7 +452,7 @@ export const QueryInsightsTable = ({
<DataGrid
ref={triageGridRef}
style={{ height: '100%' }}
- className="flex-1 grow h-full"
+ className="flex-1 grow h-full border-t-0! border-b-0!"
rowHeight={60}
headerRowHeight={36}
columns={triageColumns}
@@ -509,7 +508,7 @@ export const QueryInsightsTable = ({
<DataGrid
ref={gridRef}
style={{ height: '100%' }}
- className={cn('flex-1 grow h-full')}
+ className={cn('flex-1 grow h-full border-t-0! border-b-0!')}
rowHeight={44}
headerRowHeight={36}
columns={columns}
diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx
index 5bfb6e69c73..21dadf5fead 100644
--- a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx
@@ -509,7 +509,7 @@ export const QueryPerformanceGrid = ({
<DataGrid
ref={gridRef}
style={{ height: '100%' }}
- className={cn('flex-1 grow h-full')}
+ className={cn('flex-1 grow h-full border-t-0! border-b-0!')}
rowHeight={44}
headerRowHeight={36}
columns={columns}
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx b/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx
index 35376f9e297..5a6ab9c754a 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx
@@ -191,7 +191,7 @@ const MessagesTable = ({
)}
<DataGrid
- className="data-grid--simple-logs h-full border-b-0"
+ className="data-grid--simple-logs h-full border-t-0! border-b-0!"
rowHeight={40}
headerRowHeight={0}
columns={ColumnRenderer}
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsx
index 1fda67ce9d4..9e42185427c 100644
--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsx
@@ -127,7 +127,7 @@ export const Results = ({ rows }: { rows: readonly any[] }) => {
<DataGrid
columns={columns}
rows={rows}
- className="grow min-h-0 border-t-0"
+ className="grow min-h-0 border-t-0! border-b-0!"
rowClass={() => '[&>.rdg-cell]:items-center'}
onCellKeyDown={handleCellKeyDown}
/>
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx b/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx
index 75520609002..d09662119bf 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx
@@ -600,7 +600,7 @@ export const LogTable = ({
<DataGrid
role="table"
style={{ flex: '1 1 0%', minHeight: 0 }}
- className={cn('border-0', {
+ className={cn('border-t-0! border-b-0!', {
'data-grid--simple-logs': queryType,
'data-grid--logs-explorer': !queryType,
})}