Add ViewComponent for settings two column layout
What does this MR do and why?
Related to #365054 (closed)
The two column layout is something we use on a lot of the settings pages. We would like to update all settings pages so they utilize this standard layout (see #361999 (comment 972784750) for discussion). Up until now we we had to repeat the markup in each section to create this layout. This MR creates a Layouts::HorizontalSectionComponent
ViewComponent that can be used to dry up some of the markup. As a reference example it uses this component in the /admin/groups/<group slug>/edit
view.
Screenshots or screen recordings
Expected to look the same
Desktop
Before | After |
---|---|
Mobile
Vertical spacing looks slightly different, but this is just because the table column widths aren't the same for some reason
Before | After |
---|---|
How to set up and validate locally
- Navigate to http://gdk.test:3000/admin/groups
- Click
Edit
next to a group
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.