mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(core): fix editor sidebar open on resize (#5262)
This commit is contained in:
@@ -158,7 +158,7 @@ const DetailPageLayout = ({
|
||||
onExpand={onExpandSidebar}
|
||||
ref={sidebarRef}
|
||||
defaultSizePixels={Math.max(sidebarState.width, 240)}
|
||||
minSizePixels={240}
|
||||
minSizePixels={sidebarState.isOpen ? 240 : 0}
|
||||
maxSizePercentage={50}
|
||||
>
|
||||
{sidebar}
|
||||
|
||||
Reference in New Issue
Block a user