Skip to content

Commit e3f642b

Browse files
committed
Style adjustments for DDG browser
Prevent hyphenated words
1 parent e473b3f commit e3f642b

2 files changed

Lines changed: 25 additions & 14 deletions

File tree

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

Lines changed: 11 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,9 @@
6573
font-weight: 400;
6674
line-height: 24px;
6775
margin-block: 1em;
76+
overflow-wrap: break-word; /* Wrap long words at word boundaries when necessary */
77+
max-width: 100%;
78+
box-sizing: border-box;
6879
}
6980
}
7081
}

src/components/footer/footer.module.css

Lines changed: 14 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,7 @@
6065
letter-spacing: 2.1px;
6166
text-transform: uppercase;
6267
margin-bottom: 18px;
68+
overflow-wrap: break-word; /* Wrap long words at word boundaries when necessary */
6369
}
6470

6571
.footerLink,
@@ -205,12 +211,17 @@
205211
display: flex;
206212
gap: 32px;
207213
width: 100%;
214+
max-width: 100%;
215+
min-width: 0;
216+
box-sizing: border-box;
208217
}
209218

210219
.footerLinksWrapper > .footerSection {
211-
flex: 1;
212-
min-width: 140px;
213-
width: auto;
220+
flex: 1 1 0%; /* Use 0% basis to allow proper flex shrinking */
221+
min-width: 0;
222+
max-width: 100%;
223+
overflow-wrap: break-word; /* Wrap long words at word boundaries when necessary */
224+
box-sizing: border-box;
214225
}
215226

216227
.copyright {
@@ -234,14 +245,3 @@
234245
text-align: left;
235246
}
236247
}
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)