From 5f84668e35ffc7e18dc184107d14d221c4206f99 Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Thu, 8 Feb 2024 11:06:00 +0000 Subject: [PATCH] Allow taller images in picture elements --- CHANGELOG.md | 3 +++ src/nationalarchives/components/picture/picture.scss | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cef33802..dee8a3a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Deprecated ### Removed ### Fixed + +- Allowed taller images in picture elements on tiny devices + ### Security ## [0.1.36](https://github.com/nationalarchives/tna-frontend/compare/v0.1.35...v0.1.36) - 2024-02-06 diff --git a/src/nationalarchives/components/picture/picture.scss b/src/nationalarchives/components/picture/picture.scss index 81e19edb..33c201c6 100644 --- a/src/nationalarchives/components/picture/picture.scss +++ b/src/nationalarchives/components/picture/picture.scss @@ -70,9 +70,7 @@ } &__image { - width: 100%; - max-height: none; - height: auto; + max-height: 60rem; } &__caption {