Financial-Times / x-dash

:x::heavy_minus_sign::newspaper: shared front-end components for FT.com and the FT Apps
https://financial-times.github.io/x-dash
38 stars 6 forks source link

fix: change way to solve CLS in teaser images #773

Closed juanSanchezAlcala closed 4 months ago

juanSanchezAlcala commented 4 months ago

This PR changes way to solve CLS in x-teaser being more reliable in more scenarios. The previous approach was creating padding that in some scenarios wasn't needed sometimes.

This code is already in o-teaser

ticket