The idea of using padding-top for iframes is to ensure the aspect ratio is preserved across different device widths.
If you change the height and set the padding to 0, itâll work in changing the height, but youâll likely run into issues when you try to shrink the video down for smaller devices, because now the height is no longer a % of the width and so the aspect ratio wonât be preserved.
(Iâm speaking generally reg iFrames, not Bricks specific. These days we have aspect-ratio CSS property, but this padding-top âtrickâ that Bricks is using for iFrames is very common for handling aspect ratios of videos .itâs not a bug. Similar to images, itâs assumed that only the width will change, and the height needs to remain relative in size to the width)
Changing the width only is generally how the size of the video is changed. height and width, keeping the same aspect ratio.
Maybe youâre thinking of it working a different way, or have found a different bug that Iâm missing. Iâll let others answer, I was just commenting reg. the purpose of the padding-top being there and why itâs used generally with iFrames.