mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
Add min-width to sidebar so it won't shrink when the window gets too small (#373)
This commit is contained in:
@@ -151,7 +151,7 @@ class ResizableSidebar extends React.Component<ResizableSidebarProps> {
|
||||
const isCollapsed = mainSidebarModel.getCollapsed();
|
||||
|
||||
return (
|
||||
<div className={cn("sidebar", className, { collapsed: isCollapsed })} style={{ width }}>
|
||||
<div className={cn("sidebar", className, { collapsed: isCollapsed })} style={{ width, minWidth: width }}>
|
||||
<div className="sidebar-content">{children(this.toggleCollapsed)}</div>
|
||||
<div
|
||||
className="sidebar-handle"
|
||||
|
||||
@@ -266,8 +266,6 @@ class MainSideBar extends React.Component<MainSideBarProps, {}> {
|
||||
}
|
||||
|
||||
render() {
|
||||
const sidebarWidth = GlobalModel.mainSidebarModel.getWidth();
|
||||
|
||||
return (
|
||||
<ResizableSidebar
|
||||
className="main-sidebar"
|
||||
|
||||
Reference in New Issue
Block a user