socle

catalogue: center the listing; it read as a sliver in an empty hall at desktop widths

commit 7d35e18e149598ffa1dd928c3aa2473cc4d24f8f · parent fba503ffd6 · browse this tree
Ximianth, 2026-10-30 14:49:45 UTC

diff --git a/chrome.go b/chrome.go
index 3730975..4721e08 100644
--- a/chrome.go
+++ b/chrome.go
@@ -427,7 +427,14 @@ a.sha:hover { color: var(--accent); }
 
 /* The catalogue: listings keep their tabular bones; rows separate with soft
    hand-rules (set in sketchCSS) and directory links carry the drawer-tab mark. */
-article table.tree { border-collapse: collapse; }
+/* The catalogue sits center-room with a comfortable minimum width:
+   pinned to the left edge it read as a sliver in an empty hall at desktop widths.
+   min() keeps narrow screens unharmed. */
+article table.tree {
+	border-collapse: collapse;
+	margin: 0 auto;
+	min-width: min(36rem, 100%);
+}
 article table.tree td, article table.tree th { border: none; padding: .3rem .6rem; }
 article table.tree tbody tr:hover { background-color: var(--well); }
 article td.dir > a {