From 0f6e64acbd2aafe3d816f0a6e9b4a54b1f95c824 Mon Sep 17 00:00:00 2001 From: smakosh Date: Thu, 23 Jul 2026 13:01:44 +0200 Subject: [PATCH] fix(devpass): census registry mobile layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On phones the registry rows collapsed: the fixed-width score meters squeezed the flex-1 identity column to ~3 characters ("gem…"), the meta line wrapped one word per line, and the recommend block floated into leftover space. - Stack each entry below sm: rank stamp + full model name with the recommend verdict docked top-right, score meters full-width beneath (bars flex-1 on mobile, fixed w-24 from sm up); sm+ keeps the existing horizontal ledger row unchanged - Keep "Doc. CS-{year}" on one line and slightly tighten the registry heading tracking on mobile so the header no longer wraps mid-token - Scale the stats strip down a step on mobile (text-2xl, 0.15em label tracking) so the three columns fit without crowding Verified with Playwright at 320/390/1280 in light + dark, including a long model id for truncation. Claude-Session: https://claude.ai/code/session_01Pxhem1afhLvsxVRhG8XYxF --- apps/code/src/app/data/[year]/page.tsx | 32 ++++++++++++++++---------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/apps/code/src/app/data/[year]/page.tsx b/apps/code/src/app/data/[year]/page.tsx index a9ac931368..ddb342fe63 100644 --- a/apps/code/src/app/data/[year]/page.tsx +++ b/apps/code/src/app/data/[year]/page.tsx @@ -73,13 +73,13 @@ function ScoreMeter({ label, value }: { label: string; value: number }) { {label} -
+
- + {value.toFixed(1)}
@@ -89,8 +89,8 @@ function ScoreMeter({ label, value }: { label: string; value: number }) { function ModelRow({ model, rank }: { model: ModelSurveyModel; rank: number }) { const topUseCase = model.useCases[0]; return ( -
-
+
+
{rank}
-
+
{model.modelId}
@@ -111,13 +111,21 @@ function ModelRow({ model, rank }: { model: ModelSurveyModel; rank: number }) { : ""}
+
+
+ {model.recommendPercent}% +
+
+ recommend +
+
-
+
-
+
{model.recommendPercent}%
@@ -226,10 +234,10 @@ export default async function CensusPage({ }, ].map((stat) => (
-
+
{stat.value.toLocaleString()}
-
+
{stat.label}
@@ -241,11 +249,11 @@ export default async function CensusPage({ {/* Registry */}
-
-

+
+

The registry · ranked by value score

- + Doc. CS-{year}