From 1935de02f36b2f576ccb4338b062355aadd8eb4f Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 11:08:48 +0000 Subject: [PATCH] Phone page: keep the header's title, count line and buttons from overlapping The title column now never gets narrower than 264px; where that room isn't there (a phone held upright) the title takes its own line, the count line runs full width (one line, or two in Spanish at 320-360px), and the theme, EN/ES and Main site buttons go together on the line under it. The buttons are wrapped in one .hbtns group so they stay together. Computer widths and phones held sideways look exactly as before. The "ASC" door span is unchanged. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Cw2rM83QU3zxfQu1UxFEBM --- e63334287a3deaa3/m/index.html | 18 +++++++++++++----- e63334287a3deaa3/news/phone-header-fit.json | 15 +++++++++++++++ 2 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 e63334287a3deaa3/news/phone-header-fit.json diff --git a/e63334287a3deaa3/m/index.html b/e63334287a3deaa3/m/index.html index 9ad7afab..a1be7ec0 100644 --- a/e63334287a3deaa3/m/index.html +++ b/e63334287a3deaa3/m/index.html @@ -69,8 +69,13 @@ body{padding:calc(18px + env(safe-area-inset-top,0px)) calc(16px + env(safe-area-inset-right,0px)) calc(28px + env(safe-area-inset-bottom,0px)) calc(16px + env(safe-area-inset-left,0px))} .wrap{max-width:760px;margin:0 auto} header{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:0 12px;margin-bottom:18px} -/* the title takes the room left of the Main site link, and the Turkey Week switch gets a line of its own under them (no height while it is hidden) */ -header>div:first-child{flex:1 1 0;min-width:0} +/* the title takes the room left of the theme, language and Main site buttons (.hbtns), but never less than 264px, enough + for "ASCoding" on a line and the count line in at most two lines; where that room isn't there (a phone held upright) + the title gets a line of its own and the buttons go on the next line, under it on the left, wrapping if even they + don't fit on one line (their margin-top only shows then: next to the title, the title is taller). + The Turkey Week switch gets a line of its own under them (no height while it is hidden) */ +header>div:first-child{flex:1 1 0;min-width:min(100%,264px)} +header>.hbtns{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 12px;margin-top:12px} header>.tkrow{flex:0 0 100%;order:1} header>[data-school]{flex:0 0 100%;order:2;max-width:none} h1{font-family:var(--f-d);font-weight:800;font-size:44px;line-height:.9;letter-spacing:.01em;margin:0;text-transform:uppercase} @@ -152,9 +157,12 @@

ASCoding games

-
-
- Main site + +
+
+
+ Main site +
diff --git a/e63334287a3deaa3/news/phone-header-fit.json b/e63334287a3deaa3/news/phone-header-fit.json new file mode 100644 index 00000000..41ac0587 --- /dev/null +++ b/e63334287a3deaa3/news/phone-header-fit.json @@ -0,0 +1,15 @@ +{ + "kind": "fix", + "title": "Tidier top of the phone page", + "tags": ["Phone"], + "items": [ + "On a phone held upright, the games count now sits right under the ASCoding Games title on one or two lines, instead of in a thin column with one word per line.", + "The theme, language and Main site buttons now go on their own line under the title, so nothing at the top overlaps any more, in English or Spanish." + ], + "es": { + "Tidier top of the phone page": "La parte de arriba de la página para teléfonos, más ordenada", + "Phone": "Teléfono", + "On a phone held upright, the games count now sits right under the ASCoding Games title on one or two lines, instead of in a thin column with one word per line.": "Con el teléfono en vertical, el número de juegos ahora aparece justo debajo del título ASCoding Juegos en una o dos líneas, en vez de en una columna estrecha con una palabra por línea.", + "The theme, language and Main site buttons now go on their own line under the title, so nothing at the top overlaps any more, in English or Spanish.": "Los botones de tema, idioma y Sitio principal ahora van en su propia línea debajo del título, así que ya nada se encima en la parte de arriba, en inglés o en español." + } +}