Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amp page error #1323

Merged
1 commit merged into from Sep 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Draft
- Fix encoding issues on Account Signup Form ("'" characters showing in country name)[#1341] (https://github.com/bigcommerce/cornerstone/pull/1341)
- Require Webpack config only when used (reduce time to be ready for receiving messages from stencil-cli). [#1334](https://github.com/bigcommerce/cornerstone/pull/1334)
- Fixed amp page error related to store logo [#1323](https://github.com/bigcommerce/cornerstone/pull/1323)

## 2.3.2 (2018-08-17)
- Fix zoom behavior for small images in gallery (turn off zoom if image is too small). [#1325](https://github.com/bigcommerce/cornerstone/pull/1325)
Expand Down
6 changes: 5 additions & 1 deletion templates/components/amp/common/store-logo.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
{{else}}
width="{{first (split theme_settings.logo_size 'x')}}"
height="{{last (split theme_settings.logo_size 'x')}}"
{{#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"
{{/if}}
layout="responsive"
sizes="(min-height: {{last (split theme_settings.logo_size 'x')}}%)"
{{/if}}
alt="{{settings.store_logo.title}}">
</amp-img>
Expand Down