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-half from the main-content column, so it will expand to fill available width.
  • For the sidebar columns, use is-narrow or is-2 or is-3.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 bulma-column-widths-2902372-2.patch2.22 KBnedjo

Comments

nedjo created an issue. See original summary.

nedjo’s picture

Status: Active » Needs review
StatusFileSize
new2.22 KB

#2902382: Make sidebar width configurable may be a better solution but meantime here's a patch.

  • nedjo committed 0ae6bdf on 8.x-1.x
    Issue #2902372 by nedjo: Main content too narrow if one or no sidebars
    
nedjo’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.