-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
[BUG] Pushmenu plugin not working nicely when using data-auto-collapse-size #3561
Comments
You should add |
Thanks @REJack I will try that tomorrow! |
I tried to use .sidebar-mini-md .content-wrapper, .sidebar-mini-md .main-footer, .sidebar-mini-md .main-header {
margin-left: 4.6rem;
} I believe, the current css layout is not compatible with the mentioned pushmenu plugin configuration, i.e, the css layout applies left margin property to the main elements at specific sizes (hardcoded ones), but the pushmenu plugin is in charge to collapse/expand the sidebar on a size value that can be configured by the user and will be very different from the hardcoded ones. |
u need to use any single class |
@danny007in the body has the next classes on my previous comment: class="layout-fixed layout-navbar-fixed sidebar-mini-md" Again, I really believe the problem is that the CSS of the layout use fixed breakpoints to setup |
@Shidersz I will change the |
But I will check if I can fix it for now 😄 |
@REJack is it the only issue that blocks you from releasing 3.2 version? |
Actually not, I've waiting for #4123. If it's not fixed till wendsday I will ignore it since I can't modify it by my self. I'v not found a way to fix it without breaking it for others. |
is this issue still exist ? |
@danny007in This issue is still present on AdminLTE v3.2.0, if you follow the timeline of the discussion there is no plan to fix this on versions |
Describe the bug
The pushmenu plugin is not working nicely if you setup the
data-auto-collapse-size
to a value less than992px
(or LG breakpoint). The problem is related to the style that is applied to the.content-wrapper
,main-header
,main-footer
, and other elements at the@media (max-width: 991.98px)
. For example:As noted, a
margin-left
property is applied to the elements but the sidebar will remain open, because we have changed the defaultdata-auto-collapse-size
of the pushmenu plugin to a lower value:This will result on a visual issue, as shown next, where you have no way to collapse the sidebar and you can't see the entire
.content-wrapper
content when the screen width is lower than992px
and above the configured value that will trigger the auto collapse:More information about this issue can be found on:
jeroennoten/Laravel-AdminLTE#822
To Reproduce
Steps to reproduce the behavior:
data-auto-collapse-size
as per documented here: https://adminlte.io/docs/3.1//javascript/push-menu.html with a value lower than992
(for example600
).992px
and above the configured value.Expected behavior
The
.content-wrapper
and other element should get the special style related to sidebar collapse mode when you reach the configured value, not on the hardcoded992px
.Environment (please complete the following information):
I'm not really sure if this will be easy to be solved, because it involves a mixture between
Javascript
andCSS
compatibility. However, I wanted to describe the problem so you all know about it.The text was updated successfully, but these errors were encountered: