Skip to content

Commit

Permalink
Add max height to images (#938)
Browse files Browse the repository at this point in the history
* fix: Add max height to images

- also provides an 'unbound' class to unset this style

* fix: images overflowing main body container

---------

Co-authored-by: Sunny Zanchi <[email protected]>
  • Loading branch information
tabathadelane and sunnyzanchi authored Dec 8, 2023
1 parent bf92bfb commit 2a8c271
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ const GlobalStyles = ({ layout }) => (
}
img {
max-height: 550px;
max-width: 100%;
&.unbound {
max-height: unset;
}
}
h1,
Expand Down
1 change: 1 addition & 0 deletions packages/gatsby-theme-newrelic/src/components/Lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const Lightbox = ({ children }) => {
background: var(--modal-wrapper-color);
img {
max-height: unset;
max-width: unset;
}
`}
Expand Down

0 comments on commit 2a8c271

Please sign in to comment.