Skip to content

Fix manage sidebar not displaying beside content#48

Closed
andreagrandi wants to merge 1 commit intomasterfrom
fix-manage-sidebar-grid
Closed

Fix manage sidebar not displaying beside content#48
andreagrandi wants to merge 1 commit intomasterfrom
fix-manage-sidebar-grid

Conversation

@andreagrandi
Copy link
Copy Markdown
Owner

Summary

  • The DaisyUI drawer sidebar was rendering below the page content instead of beside it on desktop
  • Root cause: the drawer component uses CSS grid internally and needs an explicit height to lay out horizontally — the flex-1 on the <main> tag wasn't providing enough height context
  • Added min-h-[calc(100vh-4rem)] to the drawer container to account for the navbar height

Test plan

  • Visit /manage/ — sidebar should appear on the left with content on the right
  • Visit /manage/libraries/ — same layout
  • Check mobile — sidebar should be hidden behind hamburger menu
  • Verify public pages are unaffected

@andreagrandi
Copy link
Copy Markdown
Owner Author

Not needed — the sidebar issue was caused by stale CSS cache in the browser, not a code problem. The drawer works correctly after a CSS rebuild.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant