From ce117b0c402658125aea7a5f2422b3197433c2bb Mon Sep 17 00:00:00 2001 From: Ian James Date: Mon, 18 Oct 2021 14:11:51 +0100 Subject: [PATCH] Fix organisation logo size when printing The organisation logo is unconstrained when printing - so if a large image is used it'll be printed out large. This quick fix constrains the logo when printing to be no more than the width of the page. --- CHANGELOG.md | 4 ++++ .../components/print/_organisation-logo.scss | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 app/assets/stylesheets/govuk_publishing_components/components/print/_organisation-logo.scss diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bc14e8497..f1731cbe90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ useful summary for people upgrading their application, not a replication of the commit log. +## Unreleased + +* Fix organisation logo size when printing ([PR #2371](https://github.com/alphagov/govuk_publishing_components/pull/2371)) PATCH + ## 27.8.0 * Remove Coronavirus priority taxons ([PR #2357](https://github.com/alphagov/govuk_publishing_components/pull/2357)) diff --git a/app/assets/stylesheets/govuk_publishing_components/components/print/_organisation-logo.scss b/app/assets/stylesheets/govuk_publishing_components/components/print/_organisation-logo.scss new file mode 100644 index 0000000000..7ea34e6cc3 --- /dev/null +++ b/app/assets/stylesheets/govuk_publishing_components/components/print/_organisation-logo.scss @@ -0,0 +1,3 @@ +.gem-c-organisation-logo__image { + max-width: 100%; +}