Skip to content

Commit

Permalink
chore: show icon history only left panel close on thread page
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur committed Jan 26, 2025
1 parent f859074 commit f905d93
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions web/containers/Layout/TopPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
PenSquareIcon,
Settings2,
History,
PanelLeftOpenIcon,
} from 'lucide-react'
import { twMerge } from 'tailwind-merge'

Expand Down Expand Up @@ -91,10 +92,14 @@ const TopPanel = () => {
</Button>
) : (
<Button theme="icon" onClick={() => setShowLeftPanel(true)}>
<Tooltip
trigger={<History size={16} />}
content="Threads History"
/>
{mainViewState === MainViewState.Thread ? (
<Tooltip
trigger={<History size={16} />}
content="Threads History"
/>
) : (
<PanelLeftOpenIcon size={16} />
)}
</Button>
)}
</Fragment>
Expand Down

0 comments on commit f905d93

Please sign in to comment.