Skip to content

Commit

Permalink
remove image padding.
Browse files Browse the repository at this point in the history
  • Loading branch information
bstopp committed Apr 16, 2024
1 parent cd11c3a commit 4bca859
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cigaradvisor/blocks/articleheader/articleheader.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ export default async function decorate(block) {
const picture = block.querySelector('picture');
decorateSeoPicture(picture, window.location.pathname.substring(window.location.pathname.lastIndexOf('/') + 1));
imageWrapper.append(picture);
const img = picture.querySelector('img');
const ratio = (parseInt(img.height, 10) / parseInt(img.width, 10)) * 100;
picture.style.paddingBottom = `${ratio}%`;
const articleInfo = document.createElement('div');
articleInfo.classList.add('article-info');
const categoryLink = block.querySelector('p.category').innerText;
Expand Down

0 comments on commit 4bca859

Please sign in to comment.