From 3bb9236fc1486d990915c5189dfcde1ecc9ae049 Mon Sep 17 00:00:00 2001 From: Nathan Date: Tue, 18 Nov 2025 23:47:10 +0800 Subject: [PATCH] fix: DatabaseConditions height --- src/components/database/DatabaseViews.tsx | 5 ++++- .../database/components/conditions/DatabaseConditions.tsx | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/database/DatabaseViews.tsx b/src/components/database/DatabaseViews.tsx index 106f7bdd..630f55c5 100644 --- a/src/components/database/DatabaseViews.tsx +++ b/src/components/database/DatabaseViews.tsx @@ -232,7 +232,9 @@ function DatabaseViews({ }); }, [lockedHeight, fixedHeight, isLoading, viewVisible, viewId, layout, iidIndex]); - const effectiveHeight = lockedHeight ?? fixedHeight ?? null; + // Only use locked height during transitions (isLoading) or if fixedHeight is explicitly set + // This prevents the empty space issue when filters/sorts expand/collapse + const effectiveHeight = isLoading ? (lockedHeight ?? fixedHeight ?? null) : (fixedHeight ?? null); return ( <> @@ -251,6 +253,7 @@ function DatabaseViews({ setSelectedViewId={handleViewChange} viewIds={viewIds} /> +