🐛 fix: fix quicksetting sidebar default width

This commit is contained in:
canisminor1990 2023-07-06 10:42:25 +08:00
parent e3e9488923
commit 43bc9bfd59
2 changed files with 41 additions and 40 deletions

File diff suppressed because one or more lines are too long

View File

@ -38,7 +38,7 @@ const QuickSettingSidebar = memo<QuickSettingSidebarProps>(({ headerHeight }) =>
<DraggablePanel
defaultSize={{ width: setting.sidebarWidth }}
expand={expand}
minWidth={setting.extraNetworkSidebarWidth}
minWidth={setting.sidebarWidth}
mode={mode}
onExpandChange={setExpand}
onSizeChange={(_, size) => size?.width && setWidth(Number.parseInt(String(size.width)))}