Skip to content

Commit 2adf631

Browse files
Enhance mobile layout with improved overflow handling and responsive stats display
1 parent e0cc345 commit 2adf631

1 file changed

Lines changed: 52 additions & 7 deletions

File tree

src/lib/css/styles.css

Lines changed: 52 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,9 @@ input {
13941394
flex-direction: column;
13951395
gap: 6px;
13961396
height: 100%;
1397-
overflow: hidden;
1397+
overflow-x: hidden;
1398+
overflow-y: auto;
1399+
-webkit-overflow-scrolling: touch;
13981400
}
13991401

14001402
.tile-hero,
@@ -1415,10 +1417,15 @@ input {
14151417
}
14161418

14171419
.game-shell[data-mobile-screen="play"] .tile-hero,
1418-
.game-shell[data-mobile-screen="play"] .tile-actions {
1420+
.game-shell[data-mobile-screen="play"] .tile-actions,
1421+
.game-shell[data-mobile-screen="play"] .tile-stats {
14191422
display: block;
14201423
}
14211424

1425+
.game-shell[data-mobile-screen="play"] .tile-stats {
1426+
display: grid;
1427+
}
1428+
14221429
.game-shell[data-mobile-screen="ops"] .tile-debt,
14231430
.game-shell[data-mobile-screen="ops"] .tile-bugs,
14241431
.game-shell[data-mobile-screen="ops"] .tile-events {
@@ -1461,17 +1468,18 @@ input {
14611468
.game-shell[data-mobile-screen="ops"] .tile-bugs,
14621469
.game-shell[data-mobile-screen="ops"] .tile-events,
14631470
.game-shell[data-mobile-screen="play"] .tile-hero,
1464-
.game-shell[data-mobile-screen="play"] .tile-actions {
1471+
.game-shell[data-mobile-screen="play"] .tile-actions,
1472+
.game-shell[data-mobile-screen="play"] .tile-stats {
14651473
flex: 1 1 auto;
14661474
}
14671475

14681476
.game-shell[data-mobile-screen="play"] .tile-hero {
14691477
display: flex;
1470-
flex: 0 0 clamp(340px, calc(100svh - 300px), 430px);
1471-
height: clamp(340px, calc(100svh - 300px), 430px);
1478+
flex: 0 0 clamp(248px, calc(100svh - 395px), 320px);
1479+
height: clamp(248px, calc(100svh - 395px), 320px);
14721480
flex-direction: column;
14731481
justify-content: space-between;
1474-
gap: 10px;
1482+
gap: 8px;
14751483
overflow: hidden;
14761484
}
14771485

@@ -1497,8 +1505,21 @@ input {
14971505
margin: 0;
14981506
}
14991507

1508+
.game-shell[data-mobile-screen="play"] .tile-hero .loc-visual-wrap {
1509+
margin-top: 4px;
1510+
}
1511+
1512+
.game-shell[data-mobile-screen="play"] .tile-hero .loc-visual {
1513+
grid-template-columns: repeat(6, minmax(0, 1fr));
1514+
gap: 2px;
1515+
}
1516+
1517+
.game-shell[data-mobile-screen="play"] .tile-hero .loc-line {
1518+
height: 3px;
1519+
}
1520+
15001521
.game-shell[data-mobile-screen="play"] .tile-hero .combo-meter {
1501-
margin-top: 6px;
1522+
margin-top: 4px;
15021523
}
15031524

15041525
.game-shell[data-mobile-screen="play"] .tile-hero .team-visual {
@@ -1509,9 +1530,16 @@ input {
15091530

15101531
.game-shell[data-mobile-screen="play"] .tile-actions {
15111532
flex: 0 0 auto;
1533+
order: 3;
15121534
overflow: auto;
15131535
}
15141536

1537+
.game-shell[data-mobile-screen="play"] .tile-stats {
1538+
flex: 0 0 auto;
1539+
order: 2;
1540+
overflow: hidden;
1541+
}
1542+
15151543
.game-shell[data-mobile-screen="play"] .tile-actions .risk-readout p {
15161544
white-space: normal;
15171545
font-size: 0.68rem;
@@ -1670,6 +1698,15 @@ input {
16701698
grid-template-columns: repeat(2, minmax(0, 1fr));
16711699
}
16721700

1701+
.game-shell[data-mobile-screen="play"] .stats {
1702+
grid-template-columns: repeat(3, minmax(0, 1fr));
1703+
gap: 4px;
1704+
}
1705+
1706+
.game-shell[data-mobile-screen="play"] .stats div {
1707+
padding: 6px 5px;
1708+
}
1709+
16731710
.game-shell[data-mobile-screen="ops"] .tile-debt {
16741711
display: block;
16751712
}
@@ -1714,6 +1751,14 @@ input {
17141751
font-size: 0.86rem;
17151752
}
17161753

1754+
.game-shell[data-mobile-screen="play"] .stats span {
1755+
font-size: 0.55rem;
1756+
}
1757+
1758+
.game-shell[data-mobile-screen="play"] .stats strong {
1759+
font-size: 0.72rem;
1760+
}
1761+
17171762
.loc-visual {
17181763
grid-template-columns: repeat(8, minmax(0, 1fr));
17191764
}

0 commit comments

Comments
 (0)