Skip to content

Commit

Permalink
fix: force height: auto on image blocks to fix scaling issue (#2174)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelfulford committed Aug 11, 2023
1 parent 3cf093d commit 442f1ca
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 442f1ca

Please sign in to comment.