Skip to content

Commit 597110a

Browse files
authored
Fix table editor not scrollable when no rows (supabase#40305)
1 parent a39b429 commit 597110a

File tree

1 file changed

+5
-5
lines changed
  • apps/studio/components/grid/components/grid

1 file changed

+5
-5
lines changed

apps/studio/components/grid/components/grid/Grid.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export const Grid = memo(
147147
{(rows ?? []).length === 0 && (
148148
<div
149149
className={cn(
150-
'absolute top-9 p-2 w-full z-[1]',
150+
'absolute top-9 p-2 w-full z-[1] pointer-events-none',
151151
isTableEmpty && isDraggedOver && 'border-2 border-dashed',
152152
isValidFileDraggedOver ? 'border-brand-600' : 'border-destructive-600'
153153
)}
@@ -177,7 +177,7 @@ export const Grid = memo(
177177
</div>
178178
) : (filters ?? []).length === 0 ? (
179179
<div className="flex flex-col items-center justify-center col-span-full h-full">
180-
<p className="text-sm text-light">
180+
<p className="text-sm text-light pointer-events-auto">
181181
{isDraggedOver ? (
182182
isValidFileDraggedOver ? (
183183
'Drop your CSV file here'
@@ -190,7 +190,7 @@ export const Grid = memo(
190190
</p>
191191
{tableEntityType === ENTITY_TYPE.FOREIGN_TABLE ? (
192192
<div className="flex items-center space-x-2 mt-4">
193-
<p className="text-sm text-light">
193+
<p className="text-sm text-light pointer-events-auto">
194194
This table is a foreign table. Add data to the connected source to get
195195
started.
196196
</p>
@@ -215,7 +215,7 @@ export const Grid = memo(
215215
>
216216
Import data from CSV
217217
</Button>
218-
<p className="text-xs text-foreground-light">
218+
<p className="text-xs text-foreground-light pointer-events-auto">
219219
or drag and drop a CSV file here
220220
</p>
221221
</div>
@@ -224,7 +224,7 @@ export const Grid = memo(
224224
</div>
225225
) : (
226226
<div className="flex flex-col items-center justify-center col-span-full h-full">
227-
<p className="text-sm text-light">
227+
<p className="text-sm text-light pointer-events-auto">
228228
The filters applied have returned no results from this table
229229
</p>
230230
<div className="flex items-center space-x-2 mt-4">

0 commit comments

Comments
 (0)