From 74f248782b0905f9f3f8bdcd0861a80ee91c8734 Mon Sep 17 00:00:00 2001 From: Jeff Printy Date: Mon, 4 Sep 2023 14:20:43 -0500 Subject: [PATCH] Enable scrolling in collections sidebar #118 --- .../src/components/Sidebar/Collections/index.js | 3 +-- .../bruno-app/src/components/Sidebar/index.js | 17 +++++++---------- .../src/pageComponents/Index/StyledWrapper.js | 1 + 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/packages/bruno-app/src/components/Sidebar/Collections/index.js b/packages/bruno-app/src/components/Sidebar/Collections/index.js index e401174d..496f0145 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/index.js @@ -61,7 +61,7 @@ const Collections = () => { /> -
+
{collections && collections.length ? collections.map((c) => { return ( @@ -77,4 +77,3 @@ const Collections = () => { }; export default Collections; - diff --git a/packages/bruno-app/src/components/Sidebar/index.js b/packages/bruno-app/src/components/Sidebar/index.js index 2e68b27f..bb873df1 100644 --- a/packages/bruno-app/src/components/Sidebar/index.js +++ b/packages/bruno-app/src/components/Sidebar/index.js @@ -15,13 +15,11 @@ const MAX_LEFT_SIDEBAR_WIDTH = 600; const Sidebar = () => { const leftSidebarWidth = useSelector((state) => state.app.leftSidebarWidth); - const [ preferencesOpen, setPreferencesOpen ] = useState(false); + const [preferencesOpen, setPreferencesOpen] = useState(false); const [asideWidth, setAsideWidth] = useState(leftSidebarWidth); - const { - storedTheme - } = useTheme(); + const { storedTheme } = useTheme(); const dispatch = useDispatch(); const [dragging, setDragging] = useState(false); @@ -76,24 +74,23 @@ const Sidebar = () => { setAsideWidth(leftSidebarWidth); }, [leftSidebarWidth]); - return ( - +