mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 14:11:13 -05:00
Refactor: Simplify collapsed sidebar UI
This commit is contained in:
@@ -229,18 +229,16 @@ export default function Designers() {
|
||||
)}
|
||||
>
|
||||
<div className="sticky top-24">
|
||||
{sidebarCollapsed ? (
|
||||
<Card className="p-2">
|
||||
<Button
|
||||
variant="ghost"
|
||||
className="w-full"
|
||||
onClick={() => setSidebarCollapsed(false)}
|
||||
title="Show filters"
|
||||
>
|
||||
<PanelLeftOpen className="w-5 h-5" />
|
||||
</Button>
|
||||
</Card>
|
||||
) : (
|
||||
{sidebarCollapsed ? (
|
||||
<Button
|
||||
variant="ghost"
|
||||
className="w-full"
|
||||
onClick={() => setSidebarCollapsed(false)}
|
||||
title="Show filters"
|
||||
>
|
||||
<PanelLeftOpen className="w-5 h-5" />
|
||||
</Button>
|
||||
) : (
|
||||
<Card>
|
||||
<CardHeader className="flex flex-row items-center justify-between pb-2">
|
||||
<CardTitle className="text-base">Filters</CardTitle>
|
||||
|
||||
Reference in New Issue
Block a user