You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Media & Text Block: Add additional gutter/padding options for the text area #28556
Media and text blocks enforce 8% of left and right padding around the text column. This ends up being quite a bit of space when dealing with small images.
The Media & Text block should be updated to mirror the custom padding support available in the cover block. That would allow that space to be editable.
Example
Here's an example use case of something I'm trying to achieve — a user photo next to a username:
But since that 8% margin isn't editable, it ends up looking like this:
Would be great if the media & text block's default content padding could be edited within theme.json. I wasn't able to find a way to do this other than add this CSS:
The text field on the right has a hard-coded padding value. Given we have both block-gap and padding controls that can be adjusted on a per-side basis, this no longer makes any sense.
In that vein, the ideal solution would be to remove that padding rule, and instead rely on block supports: the regular padding control around the whole media & text block could apply to just the right side, if that was your preference, and the block gap would define the gap between the image on the left, and the __content field on the right.
That is the ideal design solution. The challenge here is backwards compatibility: I'd defer to developers, what would be possible to do here.
But one idea is: instead of the padding applying around the whole media & text block apply it solely around the __content area. That way, we could retain the current padding value but with lowered specificity:
Activity
james-s-k commentedon Apr 10, 2023
Would be great if the media & text block's default content padding could be edited within theme.json. I wasn't able to find a way to do this other than add this CSS:
mkdgs commentedon Aug 8, 2024
For those want to test spacing support, this allow control of gap in editor.
(this is not a beautiful solution)
In a js file:
In css reset default space and set your preferred
I don't know why this bloc not support spacing by default, but it work.
Klemart3D commentedon Dec 18, 2025
Now I know why there's no demo of the Media & Text block in the playground 😆
It's not an enhancement, it's a bug that breaks the layout!
My CSS fix:
jasmussen commentedon Aug 24, 2026
Old issue, but still valid. I'm coming here from #67208 which has some good discussion, notably asking where to apply the gap.
You've also correctly identified the issue, which is this:
The text field on the right has a hard-coded padding value. Given we have both block-gap and padding controls that can be adjusted on a per-side basis, this no longer makes any sense.
In that vein, the ideal solution would be to remove that padding rule, and instead rely on block supports: the regular padding control around the whole media & text block could apply to just the right side, if that was your preference, and the block gap would define the gap between the image on the left, and the
__contentfield on the right.That is the ideal design solution. The challenge here is backwards compatibility: I'd defer to developers, what would be possible to do here.
But one idea is: instead of the padding applying around the whole media & text block apply it solely around the
__contentarea. That way, we could retain the current padding value but with lowered specificity:As soon as you applied a block-supports padding, it would "win", same with block spacing.