Skip to content

Commit

Permalink
💄 style(sidebar): Add minWidth to DraggablePanelContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Jul 20, 2023
1 parent 3ff8610 commit 8c6f9da
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 16 deletions.
28 changes: 14 additions & 14 deletions javascript/main.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/pages/ExtraNetworkSidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
6 changes: 5 additions & 1 deletion src/pages/QuickSettingSidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 8c6f9da

Please sign in to comment.