gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

In column block having full width has no padding issue in mobile view having width less than 600px.

Open Smit2808 opened this issue 4 years ago • 4 comments

Description

I have a fresh WordPress site setup having no external plugin and theme. When I am using column block in full width then column has no padding in mobile view.

WordPress version 5.9.1 Theme Twenty Twenty Two

Step-by-step reproduction instructions

  1. Open editor and select column block. Select the full-width option in the column block.
  2. Add 2 columns. In 1 column add some texts and in the other column add image.
  3. Now view on the front side. View in a responsive device having a width less than 600px.
  4. You can clearly notice the padding issue in the column having text.
  5. So the solution is to give left-right padding 15-20px.

Adding screenshot for better understanding.

Screenshots, screen recording, code snippet

Screenshot link: https://prnt.sc/IZlhCzECe0vC

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Smit2808 avatar Mar 07 '22 11:03 Smit2808

Hi @Smit2808, Thank you for this ticket. I think it's not possible to do the pull request through the Gutenberg plugin for the Twenty Twenty Two theme. But by adding the following code to teh style.css in the theme the issue will be resolved. I tested the code and was confident about it.

.wp-block-columns.alignfull .wp-block-column p:not(.has-background){ padding-left: 20px; padding-right: 20px; }

HILAYTRIVEDI avatar Mar 22 '22 08:03 HILAYTRIVEDI

I do not seem to be able to reproduce this problem any more using WordPress 6.0.2 & Gutenberg Version 14.1.0.

On my test, the columns do have some padding: Screen Shot on 2022-09-16 at 15:35:28

I am going to close this issue but please feel free to reopen if if you can still reproduce it , @Smit2808. Thank you!

mrfoxtalbot avatar Sep 16 '22 13:09 mrfoxtalbot

Ah, my bad. I missed the part about the columns block being full with. I can confirm this is still reproducible (WordPress 6.0.2 + Version 14.1.0):

Screen Shot on 2022-09-16 at 15:39:10

I am going to re-open this.

mrfoxtalbot avatar Sep 16 '22 13:09 mrfoxtalbot

Thanks for the report, @Smit2808! A full-width Columns block is meant to run edge to edge, and that's also why images in it can bleed to the screen edge. A built-in side padding would break those designs. The inset is set per block instead: the Columns block (and each Column) has a Padding control under Dimensions, so you can add space there, for example only on the text column. I'm going to close this as working as designed.

youknowriad avatar Nov 02 '26 10:11 youknowriad