AdminLTE icon indicating copy to clipboard operation
AdminLTE copied to clipboard

[BUG] Sidebar collapse issue on Safari

Open carry0987 opened this issue 2 years ago • 1 comments

Describe the bug When set body class to layout-fixed layout-navbar-fixed and press pushmenu, the brand-link will stay on the top, and then disappear in sidebar.

To Reproduce Steps to reproduce the behavior:

  1. Set body class to layout-fixed layout-navbar-fixed
<body class="layout-fixed layout-navbar-fixed">
...
</body>
  1. Press pushmenu

  2. See bug Collapse Open

Expected behavior Just like normal sidebar, show brand-link when open the sidebar, and hide brand-link when collapse sidebar

Environment:

  • AdminLTE Version: v3.2.0
  • Operating System: macOS Ventura 13.6
  • Browser (Version): Safari 17.0 (18616.1.27.111.22, 18616)

Additional context I just download the source code and open index3.html in Safari.

carry0987 avatar Oct 01 '23 09:10 carry0987

Hotifx for this known issue just at safari/apple/webkit = recalculate fixed position:

  • add into class "hint" just for the safari - apple (to the upper container, not at brand-link),

.main-sidebar { will-change: transform; }

  • maybe it doesnt affect other systems/browsers(not tested)

yablos avatar Jul 31 '25 08:07 yablos