AdminLTE icon indicating copy to clipboard operation
AdminLTE copied to clipboard

[BUG] Wrong display when no content

Open Safranil opened this issue 1 year ago • 4 comments

Describe the bug When the content in main.app-main is not long enough or without explicit size, the layout is broken on small screen.

After some digging, this is because .app-wrapper have grid-template-columns: auto 1fr;, the auto get the content size wrong in this case.

Patch

.app-main-wrapper {
  @include media-breakpoint-down(lg) {
    width: 100vw;
  }
}

Screenshots Before the patch: image

After the patch: image

Environment (please complete the following information):

  • AdminLTE Version: 4.0.0-beta1
  • Operating System: Debian 12
  • Browser (Version): Firefox 115.13.0 ESR

Safranil avatar Jul 15 '24 22:07 Safranil

can you create PR for this if possible

danny007in avatar Aug 24 '24 15:08 danny007in

i am unable to rectify error can you please provide html source of it

danny007in avatar Aug 24 '24 15:08 danny007in

https://app.netlify.com/sites/adminlte-v4/deploys in preview which page can i get this error

danny007in avatar Aug 24 '24 15:08 danny007in

@danny007in I get the same issue on with fixed complete layout. When sidebarBreakpoint < 992, with no or little content.

You can reproduce here by closing the accordion

Screenshot 2024-08-29 at 01 02 21 Screenshot 2024-08-29 at 01 04 01

jongbonga avatar Aug 28 '24 22:08 jongbonga

issue clear v4.0.0-beta2

danny007in avatar Sep 02 '24 11:09 danny007in

issue clear v4.0.0-beta2

Should we replace the fixed layout with the custom-area layout instead?

jongbonga avatar Sep 02 '24 13:09 jongbonga

issue clear v4.0.0-beta2

Should we replace the fixed layout with the custom-area layout instead?

please replace with fixed sidebar layout

danny007in avatar Sep 02 '24 21:09 danny007in