Is there a faster way to set the sidebar width on AdminLTE 3 for Yii2 PHP Framework?
I have these sub-menus on my sidebar and they're taking so much space:
I tried doing this in my css file:
.main-sidebar {
width: 400px!important;
}
.sidebar {
width: 400px!important;
}
What's the best workaround to get the sidebar and the brand-link wider?
UPDATE: I edit the my custom css as the following:
.nav-sidebar>.nav-item .nav-icon {
margin-left: 0rem!important;
font-size: 1.2rem;
margin-right: 0rem!important;
text-align: center;
width: 1.6rem!important;
}
.sidebar-mini .main-sidebar .nav-link,
.sidebar-mini-md .main-sidebar .nav-link,
.sidebar-mini-xs .main-sidebar .nav-link {
width: calc(300px - .5rem * 2)!important;
}
.sidebar-collapse.sidebar-mini .main-sidebar .sidebar {
width: calc(300px - .5rem * 2)!important;
}
aside {
width: 300px!important;
}
body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper,
body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
transition: margin-left .3s ease-in-out;
margin-left: 300px!important;
}
.layout-navbar-fixed .wrapper .brand-link {
width: 300px!important;
}
.navbar-nav>.navbar-item>.navbar-link {
display: none!important;
}
The sidebar gets wider but now it won't collapse, like this: Sidebar Not Collapsing.
What could be causing the problem here?

