mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: double click to reset sidebar size
This commit is contained in:
parent
73f9a8fcbe
commit
86a030f308
1 changed files with 4 additions and 1 deletions
|
|
@ -104,7 +104,10 @@ export function SideBarBodyWrapper({
|
|||
{features.resize && (
|
||||
<HorizontalResizeHandler
|
||||
onResize={onResize}
|
||||
onResetSize={() => setSize(defaultConfigs.sideBarWidth)}
|
||||
onResetSize={() => {
|
||||
setSize(defaultConfigs.sideBarWidth)
|
||||
apply(sizeVariableMountPoint, defaultConfigs.sideBarWidth)
|
||||
}}
|
||||
onResizeStateChange={state => {
|
||||
blockLeaveRef.current = state === 'resizing'
|
||||
}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue