Skip to content

Default Gallery block shows on one column all the time #318

@andreiungurianu

Description

@andreiungurianu

If I add the default Gallery Block on a page, it seems to only show images in a single column. This happens both in the editor and live website. I tested with a default theme and this is not happening.

Editor
CleanShot 2022-03-24 at 15 01 43

Live website
CleanShot 2022-03-24 at 15 02 31

Temp fix

.wp-block-gallery {
    display: grid;
    gap: 20px;
}

.wp-block-gallery[class] > * { margin: 0 }

@media only screen and (min-width: 1000px) {
    .wp-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr) }
    .wp-block-gallery.columns-3, .wp-block-gallery.columns-default { grid-template-columns: repeat(3, 1fr) }
    .wp-block-gallery.columns-4 { grid-template-columns: repeat(4, 1fr) }
}

I'm using Rosa Version: 1.13.0, Nova Blocks Version 1.13.4, WP 5.9.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Legacy v1Updates for existing Rosa2 customers that won't get Rosa LT[Type] Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions