mirror of
https://github.com/RD17/ambar.git
synced 2026-04-25 15:35:49 +03:00
[GH-ISSUE #207] How to add scrolling to the side menu #204
Labels
No labels
$$ Paid Support
bug
bug
enhancement
help wanted
invalid
pull-request
question
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ambar#204
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @s1rk1t on GitHub (Dec 20, 2018).
Original GitHub issue: https://github.com/RD17/ambar/issues/207
So I looked around and there is a class in the SideMenu.scss file called '.container' that I was hoping if I added an attribute:
overflow-y:scrollwould then allow for the menu to be scrollable, but that didn't work.Any idea how I can make the side menu scrollable? Is there some container around the one listed in the SideMenu.js file that one might customize to allow for that?
EDIT: I found this: https://github.com/react-toolbox/react-toolbox/issues/218 , and per their recommendation am going to try overflow-y: auto and see if that helps.
EDIT2: Unfortunately, adding the class attribute 'overflow-y:auto' didn't help. Interested to hear any thoughts on how to accomplish adding scrolling to the side menu, as some items become hidden if the screen is too small to accommodate all of the side menu's content.
@isido993 commented on GitHub (Jan 8, 2019):
@s1rk1t
Add
overflow-y: auto;here: https://github.com/RD17/ambar/blob/ecb0294a34c0a9a98ccf4efc47fe1311ef50d9db/FrontEnd/src/components/Search/Search.js#L79@s1rk1t commented on GitHub (Jan 8, 2019):
That worked, thank you!
Just in point of reference for anyone else who needs this done:
Due to the React syntax the page is programmed with, the style must read
overflowY: 'auto',
in order for it to work properly.
Thanks again!