gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Stack block affects layout of block editor list block

Open theminaldiwan opened this issue 4 years ago • 7 comments

Description

When we wrap block editor list block inside stack block so its affects layout of block editor. Editor list block width should be full width as same group block.

Step-by-step reproduction instructions

1.Go to editor side of page/post 2.then add stack block and inside cover or button anything 3.after adding new block editor list block (paragraph block)width affects

Screenshots, screen recording, code snippet

https://www.loom.com/share/5a5e976e979c4a6c811e702876be79a8

Environment info

Wordpress 5.9.3 Gutenberg Version 13 Twenty twenty two theme MacOs

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

theminaldiwan avatar Apr 13 '22 07:04 theminaldiwan

Where is the "Stack" block? Is this from another plugin?

From your screen recording it looks like a variation of the Group block, but I don't see this in Gutenberg.

Andrew-Starr avatar Apr 13 '22 09:04 Andrew-Starr

Hi @Andrew-Starr I am not using another plugin.In Group block having option to changing stack variation in that case this issue occurs. If you see in block palatte there is stack block displayed in design section stack

theminaldiwan avatar Apr 13 '22 10:04 theminaldiwan

Thanks for the additional info.

It appears this new Stack variation will be in the upcoming version 13.0

Would you mind editing the Environment info in your original issue as this is not in 12.9.0

Andrew-Starr avatar Apr 13 '22 11:04 Andrew-Starr

Hi @Andrew-Starr yes this issue are occur gutenberg 13 version

theminaldiwan avatar Apr 13 '22 11:04 theminaldiwan

Giving width to 100% to the paragraph tag will solve this issue. But also it must be checked before implenting.

HILAYTRIVEDI avatar Jun 02 '22 07:06 HILAYTRIVEDI

I'm able to reproduce this on Gutenberg 15.4

I'm not sure if this is a big because you can still enter a paragraph that's the width of the stack as shown in the image below:

image

skorasaurus avatar Mar 31 '23 19:03 skorasaurus

Thanks for reporting! A Stack block is left-justified by default, so inner blocks are only as wide as their content. That's how the layout is designed. To make children fill the Stack, choose "Stretch items" under Justification (added in WordPress/gutenberg#47134), or set an individual child block's width to "Fill". Closing as expected behavior.

youknowriad avatar Oct 06 '26 04:10 youknowriad