Stop the Time stepper overflowing the sheet on a phone
The minutes+seconds stepper is 302px wide. With a label beside it the Time row needs about 422px of viewport, so it has been running off the right edge of the settings sheet on every phone narrower than that — measured 19px off a 390pt iPhone, 34px off a 375pt SE and 89px at 320. The "00 SEC" value and its + button were the part that got cut. Below 420px the row now stacks: label on one line, stepper right-aligned underneath with slightly narrower value columns. That needs 262px against the 276px available at 320px. Wider screens keep the inline layout. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -215,6 +215,14 @@
|
|||||||
.row h2{font-size:15px;font-weight:600;letter-spacing:.01em}
|
.row h2{font-size:15px;font-weight:600;letter-spacing:.01em}
|
||||||
.row p{font-size:12.5px;color:var(--sheet-dim);margin-top:3px;line-height:1.35}
|
.row p{font-size:12.5px;color:var(--sheet-dim);margin-top:3px;line-height:1.35}
|
||||||
|
|
||||||
|
/* a minutes+seconds stepper is 302px wide, so it can't share a line with a
|
||||||
|
label on any phone — stack it under one instead of overflowing the sheet */
|
||||||
|
@media (max-width:420px){
|
||||||
|
.row--wide{flex-direction:column;align-items:stretch;gap:10px}
|
||||||
|
.row--wide .stepper{align-self:flex-end}
|
||||||
|
.row--wide .val{min-width:46px}
|
||||||
|
}
|
||||||
|
|
||||||
.row--presets{gap:11px}
|
.row--presets{gap:11px}
|
||||||
.preset{
|
.preset{
|
||||||
flex:1;
|
flex:1;
|
||||||
@@ -366,7 +374,7 @@
|
|||||||
<button class="preset" data-base="180000" data-preset-delay="15000" aria-pressed="false">3m / 15s</button>
|
<button class="preset" data-base="180000" data-preset-delay="15000" aria-pressed="false">3m / 15s</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row row--wide">
|
||||||
<div>
|
<div>
|
||||||
<h2>Time</h2>
|
<h2>Time</h2>
|
||||||
<p>Reserve time per player.</p>
|
<p>Reserve time per player.</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user