Skip to content

Commit 9b87a48

Browse files
committed
Style adjustments for DDG browser
1 parent e473b3f commit 9b87a48

2 files changed

Lines changed: 29 additions & 14 deletions

File tree

src/components/consent-form/consent-form.module.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,16 @@
5555
background: #f2f2f2;
5656
overflow-y: auto;
5757
overflow-x: hidden;
58+
width: 100%;
59+
max-width: 100%;
60+
box-sizing: border-box;
5861

5962
.section {
63+
flex: 1 1 0%; /* Use 0% basis for proper flex behavior */
64+
min-width: 0;
65+
max-width: 100%;
66+
box-sizing: border-box;
67+
6068
p {
6169
color: #222222;
6270
font-family: var(--Font-Family-Product, 'DuckSans Product');
@@ -65,6 +73,11 @@
6573
font-weight: 400;
6674
line-height: 24px;
6775
margin-block: 1em;
76+
overflow-wrap: break-word;
77+
word-break: break-word;
78+
hyphens: auto;
79+
max-width: 100%;
80+
box-sizing: border-box;
6881
}
6982
}
7083
}

src/components/footer/footer.module.css

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.footer {
22
max-width: 1248px;
3+
width: 100%;
34
margin: 0 auto;
5+
box-sizing: border-box;
46
}
57

68
.footerContent {
@@ -11,6 +13,9 @@
1113
align-self: stretch;
1214
border-top: 1px solid rgba(0, 0, 0, 0.12);
1315
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
16+
width: 100%;
17+
max-width: 100%;
18+
box-sizing: border-box;
1419
}
1520

1621
.footerLinksWrapper {
@@ -60,6 +65,8 @@
6065
letter-spacing: 2.1px;
6166
text-transform: uppercase;
6267
margin-bottom: 18px;
68+
overflow-wrap: break-word; /* Ensure long titles wrap */
69+
word-break: break-word;
6370
}
6471

6572
.footerLink,
@@ -205,12 +212,18 @@
205212
display: flex;
206213
gap: 32px;
207214
width: 100%;
215+
max-width: 100%;
216+
min-width: 0;
217+
box-sizing: border-box;
208218
}
209219

210220
.footerLinksWrapper > .footerSection {
211-
flex: 1;
212-
min-width: 140px;
213-
width: auto;
221+
flex: 1 1 0%; /* Use 0% basis to allow proper flex shrinking */
222+
min-width: 0;
223+
max-width: 100%;
224+
overflow-wrap: break-word;
225+
word-break: break-word;
226+
box-sizing: border-box;
214227
}
215228

216229
.copyright {
@@ -234,14 +247,3 @@
234247
text-align: left;
235248
}
236249
}
237-
238-
/* Smaller gap on mobile devices for better text visibility */
239-
@media (max-width: 480px) {
240-
.footerLinksWrapper {
241-
gap: 16px;
242-
}
243-
244-
.footerLinksWrapper > .footerSection {
245-
min-width: 120px;
246-
}
247-
}

0 commit comments

Comments
 (0)