• Resolved uamv

    (@uamv)


    I’ve added a row with a single column as I’d like to add some left/right padding to a paragraph block. (There may be a better way to do this, but I haven’t been able to locate such an option.) However, when I do so, the single column width seems to be constrained to about half the viewport width. I notice the following style being applied…

    .wp-block-coblocks-column__inner>:not([class*="wp-block-"]){max-width:calc( 6 * (100vw / 12));margin-left:auto;margin-right:auto;}

    I’d assume this is not the intended result for a single column. Can you confirm whether this may be a bug or advise on something I might be missing? Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rich Tabor

    (@richtabor)

    Hi @uamv! Yup, that’s a perfect use case for the singular column row block. It could be a ?? (even one that we’ve handled over the week) but, I’d like to dive in a bit further and investigate. What theme are you using?

    Thread Starter uamv

    (@uamv)

    I’m using GeneratePress with the GP Premium plugin. For the time being, I’ve removed the row/column and added background color to the paragraph block that matches the site’s background color – this auto-adds a bit of margin. Cheater way, but gets me what I need for now. Thanks for checking this out and for a great tool!

    Plugin Author Rich Tabor

    (@richtabor)

    Appreciate the info @uamv! I created an issue on GitHub, dove in, and figured out what was going on. If you’re into what’s going on behind-the-scenes (which it looks like you may be), here’s a link to the issue.

    We’ll have this fix bundled in the pending 1.8 release, which is scheduled for Monday afternoon. CoBlocks 1.8 is primary a clean/touch-up release, but we went ahead and added our new Media Card block to the release as well. Over 220+ commits in just the last week!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Width of single column in row is constrained’ is closed to new replies.