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

Empty content with sidenav collapsed and menu expanded #56

Closed
gmartinezk opened this issue Jul 23, 2020 · 3 comments
Closed

Empty content with sidenav collapsed and menu expanded #56

gmartinezk opened this issue Jul 23, 2020 · 3 comments
Labels
enhancement New feature or request menu Issues about menu

Comments

@gmartinezk
Copy link

Hi Zongbin, how are you.

First, thanks and congratulations for this awesome template.

The issue is about when sidenav is collapsed and the menu is expanded, the sidenav content sometimes appears empty, In part because the submenu items have no icons. This cause in my opinion, a loss of context. I attach some reference images

Captura de pantalla de 2020-07-22 18-55-48
Captura de pantalla de 2020-07-22 18-55-33

Do you have some tip to avoid this, some style/structure advice.

Thanks 🙂

@nzbin nzbin added discussion Discussion for the project enhancement New feature or request labels Jul 23, 2020
@nzbin
Copy link
Member

nzbin commented Jul 26, 2020

I know this issue. The easiest way I think you can make menu collapsed when sidenav is collapsed. I will try other methods to improve it in the future.

@nzbin nzbin added the menu Issues about menu label Jul 3, 2021
@Ricard01
Copy link

Ricard01 commented Jun 20, 2024

Well thats when the sidenav is collapsed so i did this

.matero-sidenav-collapsed {
  .matero-sidenav {
	// rest remains same

	// Hides the height of the submenu 
    .submenu {
      height: 0; 
      overflow: hidden;
	
	//  Shows the submenu when the sidenav is not collapsed 
      &.active {
        height: auto; 
      }
    }

    &:hover {
      width: var(--sidenav-width);
      overflow: visible; //added

   
      .submenu{
        height: auto; // Shows de submenu in Hover
      }

    }
  }
}

@nzbin
Copy link
Member

nzbin commented Jun 23, 2024

The v18 has improved this issue, please check the website.

It will show the first letter if the icon is not set.

@nzbin nzbin closed this as completed Jun 23, 2024
@nzbin nzbin removed the discussion Discussion for the project label Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request menu Issues about menu
Projects
None yet
Development

No branches or pull requests

3 participants