pixelgrade / anima

Anima is the universal FSE WordPress theme of Pixelgrade.
GNU General Public License v2.0
6 stars 1 forks source link

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

Open andreiungurianu opened 2 years ago

andreiungurianu commented 2 years ago

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.