Skip to content

Commit

Permalink
fix(storefront): BCTHEME-479 Logo on AMP Product details page (PDP) d…
Browse files Browse the repository at this point in the history
…oes not fit header (#2054)
  • Loading branch information
bc-yevhenii-buliuk authored Jun 3, 2021
1 parent fac0cf4 commit 95e25cc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Draft
- Logo on AMP Product details page (PDP) doesn't fit header. [#2054](https://github.com/bigcommerce/cornerstone/pull/2054)
- Translation Gap: Compare page fields (Description, Rating and Availability). [#2059](https://github.com/bigcommerce/cornerstone/pull/2059)
- Translation Gap: Compare products error message. [#2061](https://github.com/bigcommerce/cornerstone/pull/2061)
- Translation Gap: Gift Certificate -> Code required message. [#2064](https://github.com/bigcommerce/cornerstone/pull/2064)
Expand Down
2 changes: 1 addition & 1 deletion templates/components/amp/common/store-logo.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{{#if (last (split theme_settings.logo_size 'x')) 'gtnum' (first (split theme_settings.logo_size 'x')) }}
sizes="(max-width: 360px) 100vw, 1vw"
{{else}}
sizes="(max-width: 360px) 100vw, 10vw"
sizes="(max-width: 768px) 15vw, 10vw"
{{/if}}
layout="responsive"
{{/if}}
Expand Down
21 changes: 17 additions & 4 deletions templates/components/amp/css/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,28 @@
align-items: center;
}

.amp-header-logo {
display: flex;
justify-content: center;
align-items: center;
flex-grow: 1;
max-height: 55px;
padding-right: 3.92857rem;
}

.amp-header-link {
display: inline-block;
text-decoration: none;
vertical-align: middle;
}

.amp-header-logo {
flex-grow: 1;
padding-right: 3.92857rem;
text-align: center;
.amp-header-link amp-img {
max-height: 55px;
}

.amp-header-link amp-img img {
min-width: auto;
width: auto;
}

.amp-empty-space {
Expand Down

0 comments on commit 95e25cc

Please sign in to comment.