Problem/Motivation
Currently in the page.html.twig template, the main content region column is set at half width while the sidebar column width is not specified.
<div class="columns">
{# Main content #}
<div class="main-content column is-half">
This works okay if all three regions have content/are rendered. But when one sidebar is empty and not rendered, the result is that the two columns (main content and sidebar) are evenly sized, while if no sidebars are rendered the main content is compressed into half the available width.
Proposed resolution
- Remove
is-halffrom the main-content column, so it will expand to fill available width. - For the sidebar columns, use
is-narroworis-2oris-3.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | bulma-column-widths-2902372-2.patch | 2.22 KB | nedjo |
Comments
Comment #2
nedjo#2902382: Make sidebar width configurable may be a better solution but meantime here's a patch.
Comment #4
nedjo