mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: not collapse on leave when not in float mode
This commit is contained in:
parent
8d9c3b9fb1
commit
2e375c6900
1 changed files with 1 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ export function SideBar() {
|
|||
collapsed: error || !shouldShow,
|
||||
})}
|
||||
baseSize={baseSize}
|
||||
onLeave={() => $shouldShow.onChange(false)}
|
||||
onLeave={sidebarToggleMode === 'float' ? () => $shouldShow.onChange(false) : undefined}
|
||||
>
|
||||
<div className={'gitako-side-bar-body'}>
|
||||
<div className={'close-side-bar-button-position'}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue