mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 19:51:12 -05:00
Refactor: Simplify collapsed sidebar UI
This commit is contained in:
@@ -300,18 +300,16 @@ const Operators = () => {
|
||||
)}
|
||||
>
|
||||
<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