💄 style(sidebar): Add `minWidth` to DraggablePanelContainer

pull/303/head
canisminor1990 2023-07-20 18:30:32 +08:00
parent 3ff8610f9a
commit 8c6f9da5ee
3 changed files with 24 additions and 16 deletions

File diff suppressed because one or more lines are too long

View File

@ -62,7 +62,11 @@ const ExtraNetworkSidebar = memo<ExtraNetworkSidebarProps>(({ headerHeight }) =>
<LayoutSidebarInner>
<DraggablePanelContainer
className={styles.container}
style={mode === 'float' ? { background: theme.colorBgContainer } : {}}
style={
mode === 'float' ?
{ background: theme.colorBgContainer, minWidth: setting.extraNetworkSidebarWidth } :
{ minWidth: setting.extraNetworkSidebarWidth }
}
>
<DraggablePanelHeader
pin={pin}

View File

@ -52,7 +52,11 @@ const QuickSettingSidebar = memo<QuickSettingSidebarProps>(({ headerHeight }) =>
<LayoutSidebarInner>
<DraggablePanelContainer
className={styles.container}
style={mode === 'float' ? { background: theme.colorBgContainer } : {}}
style={
mode === 'float' ?
{ background: theme.colorBgContainer, minWidth: setting.sidebarWidth } :
{ minWidth: setting.sidebarWidth }
}
>
<DraggablePanelHeader
pin={pin}