Add min-width to sidebar so it won't shrink when the window gets too small (#373)

This commit is contained in:
Evan Simkowitz
2024-03-04 16:09:23 -08:00
committed by GitHub
parent 50953839b1
commit 1f9d9b160a
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -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"
-2
View File
@@ -266,8 +266,6 @@ class MainSideBar extends React.Component<MainSideBarProps, {}> {
}
render() {
const sidebarWidth = GlobalModel.mainSidebarModel.getWidth();
return (
<ResizableSidebar
className="main-sidebar"