Skip to content

Commit

Permalink
fix: force height: auto on image blocks to fix scaling issue
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelfulford committed Aug 11, 2023
1 parent 2c305b9 commit 887aa73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions newspack-theme/sass/blocks/_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,10 @@ p.has-background {
figcaption {
text-align: left;
}

img:not([style*='object-fit']) {
height: auto !important; // !important to override inline styles.
}
}

//! Galleries
Expand Down

0 comments on commit 887aa73

Please sign in to comment.