Adapting "wide with" Gutenberg blocks for mobile

admin2025-06-03  2

I am currently trying to add some of Gutenberg's "wide with" blocks to a theme. In blog posts they, as they are supposed to, extent further to the left and right than the text of these blog posts.

On desktop displays this works just fine as there is sufficient empty space on both sides of the text. But when viewing these blog posts on phones, where the text fills the screen horizontally, these "wide with" blocks don't fit on the screen and produce horizontal scroll bars.

Is there any recommended way of dealing with this? For example, is it possible to turn images that are "wide with" on large screens into "normal width" for smaller screens?

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748935799a314963.html

最新回复(0)