Skip to content

Commit b069858

Browse files
feat: fix out of display components on mobile #5380 (#5399)
1 parent 71defb8 commit b069858

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

src/components/CookieNotice/CookieNotice.scss

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313

1414
.cookie-notice__buttons {
1515
display: flex;
16+
flex-wrap: wrap;
17+
gap: $spacing--xs;
18+
margin-top: $spacing--base;
19+
20+
@media (max-width: 768px) {
21+
flex-direction: column-reverse;
22+
}
1623
}
1724

1825
.cookie-notice__button {
@@ -26,19 +33,21 @@
2633
@extend .cookie-notice__button;
2734
background: $blue--500;
2835
color: $gray--000;
29-
margin: 0 0 $spacing--base $spacing--base;
3036
}
3137
&-decline {
3238
@extend .cookie-notice__button;
3339
background: $gray--300;
3440
color: $navy--700;
35-
margin: 0 0 $spacing--base $spacing--base;
3641
}
3742
&-cookie-policy {
3843
@extend .cookie-notice__button;
3944
background: $gray--300;
4045
color: $navy--700;
41-
margin: 0 auto $spacing--base 0;
46+
flex: 1;
47+
48+
@media (max-width: 768px) {
49+
flex: none;
50+
}
4251
}
4352
}
4453

src/components/Templates/AccessSettings/AccessSettings.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
display: flex;
77
justify-content: center;
88
align-items: center;
9+
overflow-y: auto;
910
}
1011

1112
.access-settings {
1213
display: flex;
1314
flex-direction: column;
1415
gap: $spacing--xl;
16+
overflow-y: auto;
1517

1618
width: 37%;
1719

@@ -45,9 +47,13 @@
4547
}
4648

4749
@media screen and (max-width: $breakpoint--smartphone) {
48-
.access-settings {
49-
width: 75%;
50+
.access-settings__wrapper {
51+
padding: $spacing--xs;
52+
}
5053

54+
.access-settings {
55+
height: 90%;
56+
width: 85%;
5157
gap: $spacing--md;
5258

5359
padding: $spacing--xl $spacing--base $spacing--base $spacing--base;

0 commit comments

Comments
 (0)