Add panel containers to remaining standalone layouts
What does this MR do and why?
Follow-up to !267204 (merged): adds a panel container (gl-@container/panel) to the last standalone layouts that lack one.
devise_empty: fixes a regression. The layout setswith-gl-container-querieson<html>, which turns off GitLab UI's media query fallback, but it had nopanelcontainer. Somain.contentlost its 20px top margin under 576px on the 2FA, passkey, "almost there" confirmation and SSO redirect pages. Spotted in !267204 (comment 4147693147).termsandregistration_two_panel(EE): no visual change today. They have nopanelcontainer, so their responsive styles would stop working once GitLab UI drops the fallback.
References
Screenshots or screen recordings
/users/almost_there at 375px. The content is vertically centered, so the restored 20px top margin moves it down slightly. terms and registration_two_panel have no visual change.
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Visit
/users/almost_thereat a viewport narrower than 576px. In devtools,main.contenthasmargin-top: 0pxonmasterand20pxwith this MR.
Validation
Checked in GDK, comparing element boxes with and without the container class:
| Layout | Result |
|---|---|
devise_empty (/users/almost_there) |
main.content margin at 375px: 0px on master, 20px with this MR. Boxes identical at 1280px. |
terms (/-/users/terms, with a markdown table in the terms) |
Boxes identical at 375px and 1280px. |
registration_two_panel |
Not checked in a browser: it only renders when onboarding is enabled (SaaS). The container goes on the left column, a gl-flex-1 gl-min-w-0 flex item, so its width already ignores its content and inline-size containment doesn't change layout. |
On terms the container is on .terms so it also covers flash messages. On registration_two_panel it is on the left column only, so its width matches the content area rather than the whole two-panel row.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

