Skip to content

Commit 749ee31

Browse files
authored
Fix home promo images (#7596)
Somethings broke after the NextJS 13 bump. I went through all the pages except home 😞. Before | After ---|--- ![localhost_3000_](https://user-images.githubusercontent.com/6844391/199270155-7f3bee26-ef72-44c4-9a37-7323fb5340f0.png) | ![localhost_3000_ (2)](https://user-images.githubusercontent.com/6844391/199278285-dc46da48-ea20-42d8-9473-ffaf30ef9a1a.png)
1 parent d7dc443 commit 749ee31

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.changeset/six-ligers-suffer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'polaris.shopify.com': patch
3+
---
4+
5+
Fixed home promo image layout

polaris.shopify.com/src/components/HomePage/HomePage.module.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@
9292
.Promos {
9393
margin-top: 4rem;
9494
display: grid;
95-
grid-template-columns: 1fr 1fr;
95+
grid-template-columns: repeat(2, minmax(0, 1fr));
9696
overflow: hidden;
9797
gap: 1rem;
9898

9999
@media screen and (max-width: $breakpointTablet) {
100-
display: flex;
101-
flex-direction: column;
100+
display: grid;
101+
grid-template-columns: minmax(0, 1fr);
102102
gap: 1rem;
103103
margin-top: 2rem;
104104
}

polaris.shopify.com/src/components/HomePage/HomePage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ function HomePage({}: Props) {
7474
<Image
7575
width={1600}
7676
height={800}
77+
style={{width: '100%', height: 'auto'}}
7778
src="/images/home-news.png"
7879
alt="A list showcasing the new font sizes in Polaris"
7980
/>

0 commit comments

Comments
 (0)