Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Hamburger Menu for AdminPanel Sidebar on Mobile Devices. #85

Open
Pratik2026 opened this issue Jun 5, 2024 · 4 comments · May be fixed by #86
Open

Add Hamburger Menu for AdminPanel Sidebar on Mobile Devices. #85

Pratik2026 opened this issue Jun 5, 2024 · 4 comments · May be fixed by #86
Assignees
Labels
BSoC'24 enhancement New feature or request frontend Issue related to frontend good first issue Good for newcomers

Comments

@Pratik2026
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

We can't keep the AdminPanel sidebar open on mobile devices due to lack of space. So currently there's no way to access the AdminPanel sidebar on mobile devices.
image

Describe the solution you'd like

Add a hamburger menu icon (keep the color "yellow", the same as the theme color) to the navbar that will be visible on mobile devices & admin route only. When the hamburger icon is clicked, it should open the AdminPanel sidebar in a side drawer.

Also, make the "BUSIFY" text of the sidebar responsive for tablet screens(currently seems too small).

Describe alternatives you've considered

No response

Developer Help

In order to view the admin page as an "Admin" role, you can make a slight change in "frontend/src/store/ authstore.tsx" file:
At line 25 :
setUser: user => set({ user: { ...user, role: 'admin', } }),

@Pratik2026 Pratik2026 added enhancement New feature or request good first issue Good for newcomers frontend Issue related to frontend BSoC'24 labels Jun 5, 2024
@shounakpatil
Copy link

shounakpatil commented Jun 5, 2024

I want to work on this issue, I will create an icon to toggle a sidebar panel using a react component, given the opportunity

@Pratik2026
Copy link
Collaborator Author

@shounakpatil Sure, you can start working on it.

@shounakpatil
Copy link

Thank you!

@abhijeetw035
Copy link
Contributor

abhijeetw035 commented Jun 7, 2024

Assign this issue to me
About the hamburger menu
We can just add a hide property in the media query and add display property back to the hamburger menu when clicked on icon
Formaly i will add button using media query and use hidden and display property to it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BSoC'24 enhancement New feature or request frontend Issue related to frontend good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants