Skip to content

Commit f59ea8b

Browse files
authored
Merge pull request #76 from diekus/pwastore-masonry
Fixes layout in mobile
2 parents 20eaf01 + 03fdb18 commit f59ea8b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

pwa-pwastore/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h2>Instructions</h2>
3535
<ul>
3636
<li>Check if you need to enable any experimental features in <code>about://flags</code>.</li>
3737
<li><a href="https://developer.microsoft.com/en-us/microsoft-edge/origin-trials/trials" target="_blank">List of active Origin Trials on Microsoft Edge.</a></li>
38-
<li>This app uses the <a href="https://aka.ms/webinstall">Web Install API</a> to install demos.</li>
38+
<li>This app uses the <a href="https://aka.ms/webinstall">Web Install API</a> to install demos and the <a href="https://developer.chrome.com/blog/masonry" target="_blank">Masonry layout</a> to arrange items.</li>
3939
</ul>
4040
</article>
4141

pwa-pwastore/styles/pwastore.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,9 @@ a {
9595

9696
code {
9797
font-family: monospace;
98-
margin: 0.15rem;
99-
background-color: #FEFEFE22;
98+
margin: 0.2rem;
99+
background-color: #FEFEFE55;
100+
border-radius: 5px;
100101
}
101102

102103

@@ -224,7 +225,7 @@ footer {
224225
@media only screen and (max-width: 600px) {
225226
main {
226227
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
227-
grid-template-rows: repeat(auto-fill, 275px);
228+
grid-template-rows: repeat(auto-fill, auto);
228229
}
229230

230231
header {
@@ -242,7 +243,7 @@ footer {
242243
@media only screen and (max-width: 350px) {
243244
main {
244245
grid-template-columns: repeat(auto-fill, 100%);
245-
grid-template-rows: repeat(auto-fill, 275px);
246+
grid-template-rows: repeat(auto-fill, auto);
246247
}
247248
}
248249

0 commit comments

Comments
 (0)