From 05109bd3928b867d2aada5cf0cc2f22b3902ce94 Mon Sep 17 00:00:00 2001 From: martbost Date: Thu, 22 Oct 2026 04:19:43 -0500 Subject: [PATCH] Spin view: destination rows go compact when the TABLE is narrow (container query), not only the window. On mid-width desktops the detail pane left the destination column near 0 px, wrapping the URL one letter per line and overlapping the Destination and Weight headers (Michael, 10-21) Co-Authored-By: Claude Opus 5.5 --- public/links.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/public/links.html b/public/links.html index d7cfc2a..562cc8a 100644 --- a/public/links.html +++ b/public/links.html @@ -25,6 +25,18 @@ .dbody{padding:16px 24px;display:grid;gap:14px} .dest .hd,.dest .rw{grid-template-columns:minmax(0,2fr) 150px 80px 80px 110px 130px} .dest .rw.edit{grid-template-columns:1fr;background:var(--panel-2)} +/* Compact rows when the TABLE (not the window) is narrow: the detail pane sits beside the link list and the rail, so a + desktop window could leave the destination column near 0 px and wrap the URL one letter per line (Michael, 10-21). */ +.tbl.dest{container-type:inline-size} +@container (max-width:860px){ + .dest .hd{display:none} + .dest .rw:not(.edit){display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px} + .dest .rw:not(.edit)>div:first-child{flex:1 1 100%;min-width:0} + .dest .rw:not(.edit)>.r{text-align:left} + .dest .rw:not(.edit)>.r:nth-child(3)::before{content:"Clicks ";color:var(--muted);font-size:11px} + .dest .rw:not(.edit)>.r:nth-child(4)::before{content:"Unique ";color:var(--muted);font-size:11px} + .dest .rw:not(.edit)>span:last-child{margin-left:auto} +} .dest .dl{display:flex;align-items:center;gap:6px;flex-wrap:wrap} .hdot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--line-strong);flex:none;vertical-align:middle} .hdot.ok{background:var(--ok);box-shadow:0 0 0 2px rgba(14,138,92,.2)} .hdot.warn{background:#D98B0C;box-shadow:0 0 0 2px rgba(217,139,12,.2)} .hdot.bad{background:var(--bad);box-shadow:0 0 0 2px rgba(185,28,28,.2)}