Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Try adding left/right alignment controls to the spacer block #16049
This was originally raised by @melchoyce in a DM. Squarespace has a spacer-type elmement that can be floated to the left or right. It may be interesting to try something like this out for Gutenberg too.
This feature can be helpful if a user wants to offset blocks and create non-standard layouts. These left/right spacers could theoretically be ignored on smalls screens, so the content would still be is full width there.
This is a super-rough hack, but to get the general idea across:
(Ideally the right/left resize handles would only show up when the image is floated to the left or right though.)
I'm torn actually, adding that UI and functionality is not difficult - but as a user, having to do each of those steps to add space left or right of another block seems a bit heavy.
Some thoughts/suggestions on this implementation that could lighten up the UX:
At its core, this issue is meant to easily create columns of content from existing content. As an alternate approach to this, I opened a "Transform to Columns" issue here: #16504
It's not exactly the same, but does accomplish a similar goal: put stuff into columns.