Skip to content

Commit 3698661

Browse files
committed
minor #1729 [Site] Fix InfiniteScroll demo (smnandre)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [Site] Fix InfiniteScroll demo Fix multiple small visual bugs on Safari iOS Commits ------- 3080979 [Site] Fix InfiniteScroll demo
2 parents 3be482f + 3080979 commit 3698661

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

ux.symfony.com/assets/styles/components/_Browser.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
box-shadow: 0 0 0 1px #070707;
8888
display: grid;
8989
place-content: center;
90+
padding: 0;
9091
}
9192

9293
.Browser__dot span {

ux.symfony.com/assets/styles/components/_ProductGrid.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
--item-ratio: 1;
77
--grid-columns: 5;
88
}
9+
@media screen and (max-width: 768px) {
10+
.ProductGrid {
11+
--grid-columns: 2;
12+
}
13+
}
14+
15+
.ProductGrid__inner {
16+
padding: min(4%, 1.5rem);
17+
}
918

1019
.ProductGrid_page {
1120
display: grid;

ux.symfony.com/templates/components/PrevNextDemo.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
<div class="container-fluid container-xxl p-4 p-md-5">
3-
<div style="display: flex; justify-content: space-between;gap: 3rem; flex-wrap: wrap;">
3+
<div style="display: flex; gap: 3rem; flex-wrap: wrap;" class="justify-content-center justify-content-lg-between">
44
{% set previous = this.previous(true) %}
55
{% if previous %}
66
<div style="max-width: 320px;--bs-secondary-bg-subtle: var(--bs-dark-bg-subtle);">

ux.symfony.com/templates/demos/live_component/infinite_scroll.html.twig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<div class="container container-xl mb-5">
1919
<twig:Browser
2020
url="/foo"
21-
style="width: 80%;"
2221
class="shadow-blur shadow-blur--rainbow"
2322
>
2423
<twig:ProductGrid />

0 commit comments

Comments
 (0)