4
votes
Improvement For Section Block
The new Section Block is very powerful and flexible, but there are a few suggestions to improve it. First, add Inherit Max Width From Theme settings like Row Layout Block. Second, let users to decide whether the Section Block needs to be at the center if Max Width is set (currently margin-left and margin-right auto is set by default, thus making the Section Block become at the center). Last, the css for the Block Gap if Align settings change to Horizontal, exclude the first block (child) having margin left, this margin left at the first block (child) make our layout not centered. For example, when we change the align settings to horizontal, by default the gap is 10px, this 10px will make all of the blocks (child) have a margin-left of that value, so the overall layout shifted to the right because of the first block (child) have the margin-left also. Try to exclude the margin-left applied on the first block (child), if not we need to put 0px as the gap and manually add margin to other blocks (child) than the first block (child). Thanks!


