There is a shift in the views grid

Created on 24 October 2021, over 3 years ago
Updated 1 March 2023, almost 2 years ago

I created a views to display my content in a grid, but there is an offset in the views grid

To correct the problem I have to uncheck the grid-column : 1 / 9 box in the chrome inspector

πŸ› Bug report
Status

Closed: works as designed

Version

9.5

Component
OliveroΒ  β†’

Last updated 2 days ago

Created by

πŸ‡«πŸ‡·France zenimagine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡±Netherlands tinto Amsterdam

    I think the OP expects the (frontpage) view to take up more width. Instead, the first child div of div.view-id-frontpage has grid-column: 1 / 9; applied to it, so it takes up only 9 grid columns instead of the expected 12.

    The cause is that there are layout helper classes applied to the view (and region) template, that manipulate the width of child elements.

    @zenimagine, have a look at views-view--frontpage.html.twig for example, where you can see that the class layout--pass--content-narrow is applied.

    I'm gonna go ahead and close this issue, as it works as intended. Thank you all for contributing!

Production build 0.71.5 2024