feat(keys): flow keys down wide columns

Lay the key list out column-major with columns at least 26rem wide, so
an alphabetical list reads top to bottom and most full keys fit on one
line (at 1024px, 0 of 142 keys in com.apple.security wrap, down from all
of them).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ccandClaude Opus 5.5 committed 2026-11-19 19:13:59 +01:00
1 parent 7afaf25cbd
commit 034049db6a
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -770,7 +770,9 @@ export default function Keys() {
</span>
</div>
<div className="grid grid-cols-1 gap-x-4 gap-y-1 sm:grid-cols-2 2xl:grid-cols-3">
{/* Column-major flow so an alphabetical list reads top to bottom;
columns stay wide enough for most full keys on one line. */}
<div className="columns-[26rem] gap-x-4">
{namespaceKeys.map((entry) => (
<KeyLink
key={`${entry.status}:${entry.key}`}
+1 -1
View File
@@ -19,7 +19,7 @@ export function KeyLink({ entry }: { entry: DisplayedKey }) {
entry.key,
)}&os=${encodeURIComponent(entry.os)}`}
className={cn(
"group flex min-w-0 items-start gap-2 rounded-md px-1 py-1 font-mono text-sm leading-5 transition-colors",
"group mb-1 flex min-w-0 break-inside-avoid items-start gap-2 rounded-md px-1 py-1 font-mono text-sm leading-5 transition-colors",
isNew
? "bg-emerald-50 text-emerald-800 hover:bg-emerald-100 dark:bg-emerald-950/30 dark:text-emerald-200 dark:hover:bg-emerald-950/50"
: isRemoved