Skip to content

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

Fix height of storage panel (#33624)

Terry Sutton163604bccd50
diff --git a/apps/studio/components/ui/InfiniteList.tsx b/apps/studio/components/ui/InfiniteList.tsx
index 2a3ece04e04..8ed657cb897 100644
--- a/apps/studio/components/ui/InfiniteList.tsx
+++ b/apps/studio/components/ui/InfiniteList.tsx
@@ -111,33 +111,34 @@ function InfiniteList<T, P>({
return (
<>
- <AutoSizer>
- {({ height, width }: { height: number; width: number }) => (
- <InfiniteLoader
- itemCount={itemCount}
- isItemLoaded={isItemLoaded}
- loadMoreItems={loadMoreItems}
- >
- {({ onItemsRendered, ref }) => (
- <VariableSizeList
- ref={(refy) => {
- ref(refy)
- listRef.current = refy
- }}
- height={height ?? 0}
- width={width ?? 0}
- itemCount={itemCount}
- itemData={itemData}
- itemSize={getItemSize}
- onItemsRendered={onItemsRendered}
- >
- {Item}
- </VariableSizeList>
- )}
- </InfiniteLoader>
- )}
- </AutoSizer>
-
+ <div className="flex-grow">
+ <AutoSizer>
+ {({ height, width }: { height: number; width: number }) => (
+ <InfiniteLoader
+ itemCount={itemCount}
+ isItemLoaded={isItemLoaded}
+ loadMoreItems={loadMoreItems}
+ >
+ {({ onItemsRendered, ref }) => (
+ <VariableSizeList
+ ref={(refy) => {
+ ref(refy)
+ listRef.current = refy
+ }}
+ height={height ?? 0}
+ width={width ?? 0}
+ itemCount={itemCount}
+ itemData={itemData}
+ itemSize={getItemSize}
+ onItemsRendered={onItemsRendered}
+ >
+ {Item}
+ </VariableSizeList>
+ )}
+ </InfiniteLoader>
+ )}
+ </AutoSizer>
+ </div>
<div
style={{
position: 'absolute',