Open andersnoren opened 6 months ago
I ran into this as well.
The tricky bit with the Group block is that margin left/right auto is applied within constrained layouts. Should left and right margin be available when not in a constrained layout instead?
The tricky bit with the Group block is that margin left/right auto is applied within constrained layouts. Should left and right margin be available when not in a constrained layout instead?
@richtabor I'd be in favor of that.
What problem does this address?
By default, the group block only supports setting vertical margins:
This makes sense in most cases.
However, when the group block is inside of a row block, you might want to be able to set a horizontal margin on the group block, to modify the space between the group and other blocks in the row block. You can set a block spacing value on the row as well, but there are many scenarios where you want different margin values on different child blocks inside the row. Right now, this isn't possible with the group block.
What is your proposed solution?
When the group block is a direct descendant of a row block, it should support horizontal margin values as well as vertical.