Repository navigation
Conversation
loic425
marked this pull request as ready for review
November 19, 2026 15:39
rem42
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The shadcn admin UI lets admins collapse the sidebar to its icons to get more room for the content. The Bootstrap admin UI had no equivalent: the sidebar always takes 15rem on desktop.
This brings the same behaviour to the Bootstrap admin UI:
sidebar_statecookie, read on the server so there is no layout shift on page load.Below the
lgbreakpoint nothing changes: the sidebar is still the burger menu, which the shortcut now toggles too.The state lives on the
<aside>(data-sidebar-state), and the styles only rely on the existingnav-link-title,dropdown-menuanddropdown-toggleclasses, so apps overriding the menu template keep working. Apps overridingsidebar.html.twig(e.g. Sylius) need to add the controller and the attribute to get the feature.Translations were added in en, fr, de, es, nl and pl.
public/assets were rebuilt withyarn build.Bootstrap admin UI
sidebar-collapse-bootstrap.webm
Shadcn admin UI (for comparison)
sidebar-collapse-shadcn.webm