Skip to content
This repository was archived by the owner on Apr 5, 2022. It is now read-only.

Prevent the sidenav icons from looking too much apart when the sidenav is collapsed and the user is using the expanded property#357

Merged
khoberg merged 1 commit intocjdev2:masterfrom
nestoralonso:patch-1
Jun 11, 2021
Merged

Prevent the sidenav icons from looking too much apart when the sidenav is collapsed and the user is using the expanded property#357
khoberg merged 1 commit intocjdev2:masterfrom
nestoralonso:patch-1

Conversation

@nestoralonso
Copy link
Copy Markdown
Contributor

Problem

The expanded property if LinkGroup is useful to always have visible the items of a menu if it only has just a few items, the problem is that if you set expanded to true and the sidebar is collapsed it still shows all the vertical empty space that is used for the menu items.

sidenav-01

sidenav-02

Solution

Prevents the sidenav icons from looking too much apart when the sidenav is collapsed. This does the task by not adding the .expanded class if the SideNav is collapsed

Prevents the sidenav icons from looking too much apart when the sidenav is collapsed. This does the task by not adding the .expanded class if the SideNav is collapsed
@khoberg khoberg merged commit 06ede50 into cjdev2:master Jun 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants