Skip to content

Commit 8726ce7

Browse files
committed
Fix narrow viewport app overflow
1 parent 1e402ae commit 8726ce7

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

‎app/globals.css‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3270,12 +3270,16 @@ a {
32703270
display: grid;
32713271
min-height: 38rem;
32723272
padding: 7rem 1.4rem 4rem;
3273-
grid-template-columns: 1fr 0.55fr;
3273+
grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr);
32743274
align-items: end;
32753275
gap: 5rem;
32763276
border-bottom: 1px solid var(--commit-line);
32773277
}
32783278

3279+
.commit-app-hero > * {
3280+
min-width: 0;
3281+
}
3282+
32793283
.commit-app-kicker {
32803284
margin: 0;
32813285
color: var(--commit-cool);
@@ -3286,10 +3290,13 @@ a {
32863290

32873291
.commit-app-hero h1 {
32883292
display: grid;
3293+
min-width: 0;
3294+
max-width: 100%;
32893295
margin: 1.2rem 0 0;
32903296
font-size: clamp(5rem, 9vw, 10rem);
32913297
letter-spacing: -0.05em;
32923298
line-height: 0.75;
3299+
overflow-wrap: anywhere;
32933300
}
32943301

32953302
.commit-app-hero h1 span,
@@ -3300,6 +3307,7 @@ a {
33003307

33013308
.commit-app-hero-copy {
33023309
display: grid;
3310+
min-width: 0;
33033311
gap: 1.7rem;
33043312
}
33053313

@@ -3312,18 +3320,22 @@ a {
33123320

33133321
.commit-app-anchor {
33143322
display: flex;
3323+
min-width: 0;
3324+
max-width: 100%;
33153325
flex-wrap: wrap;
33163326
gap: 0.5rem;
33173327
}
33183328

33193329
.commit-app-anchor span {
3330+
max-width: 100%;
33203331
padding: 0.48rem 0.62rem;
33213332
border: 1px solid var(--commit-line);
33223333
background: rgb(255 255 255 / 0.025);
33233334
color: #c6d0d5;
33243335
font-size: 0.58rem;
33253336
font-weight: 760;
33263337
letter-spacing: 0.05em;
3338+
overflow-wrap: anywhere;
33273339
}
33283340

33293341
.commit-app-status {
@@ -3788,7 +3800,7 @@ a {
37883800

37893801
.commit-app-hero,
37903802
.commit-app-next {
3791-
grid-template-columns: 1fr;
3803+
grid-template-columns: minmax(0, 1fr);
37923804
gap: 2rem;
37933805
}
37943806

0 commit comments

Comments
 (0)