Commit 89a10892 authored by Andy-bubu's avatar Andy-bubu

fix: prevent collapsed filters from reserving grid space

parent f53d7e42
...@@ -966,7 +966,12 @@ export default function RecordWorkbench({ ...@@ -966,7 +966,12 @@ export default function RecordWorkbench({
</div> </div>
{expandedFilterFields.length > 0 ? ( {expandedFilterFields.length > 0 ? (
<Disclosure.Content className="min-w-0 xl:col-start-1 xl:col-end-2"> <Disclosure.Content
className={clsx(
'min-w-0 xl:col-start-1 xl:col-end-2',
!filtersExpanded && 'hidden',
)}
>
<div className="grid min-w-0 grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-3"> <div className="grid min-w-0 grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-3">
{expandedFilterFields.map(renderFilterField)} {expandedFilterFields.map(renderFilterField)}
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment