Saltar navegación

[Resuelto] Gallery Issue Blocks 1.6

This support ticket is created hace 3 años, 11 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zona horaria del colaborador: Asia/Karachi (GMT+05:00)

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por JoelK2744 hace 3 años, 11 meses.

Asistido por: Waqar.

Autor
Mensajes
#2127835

Hello, I've updated to blocks 1.6 on our test site and when on mobile there are big gaps between the gallery cells. Here is an example - enlace oculto - if you compress the browser so the site responds to mobile, and then scroll down to the gallery images you will see the big gaps. This is what it's meant to look like (this is with Blocks 1.5.3) - enlace oculto

I've tried clearing caches etc and I can't see any obvious changes in the CSS.

Thanks

#2128493

Hi,

Thank you for contacting us and I'd be happy to assist.

While, I can see the extra gaps between the gallery images on smaller screens on your website, I couldn't reproduce this on my test website.

As a quick fix, you can include this custom CSS code in your content template and the gaps will be removed:


@media only screen and (max-width: 768px) {
.tb-gallery--grid:not(.tb-gallery--grid--nocrop) .tb-brick__content {
	margin-top: -100%;
}
}

To investigate this further, I'll need to see exactly how this gallery block is set up in the admin area, to reproduce this on a test website.

Can you please share temporary admin login details, in reply to this message?

Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.

regards,
Waqar

#2129717

Thank you for sharing these details.

During further investigation, I found that this custom CSS code from WP Admin -> Appearance -> Customize -> Custom CSS, is responsible for the extra space/gaps:


#listing-gallery .tb-brick__content {
		height: auto!important;
		position: inherit!important;
	}

If you'll remove it, both the galleries will show with correct spacing on the smaller screens.

#2129753

Ah great, thanks Waqar. I'd forgotten about that snippet, looks like it's no longer needed.