fix: prevent table overflow on supported-targets page

Long code paths (e.g. Xcode target paths) broke layout by pushing
the table beyond its container. Override white-space on td code to
allow wrapping, and add overflow-x: auto as a safety net.
This commit is contained in:
Willie
2026-02-13 14:21:37 +08:00
parent bf1a12545f
commit f209d72fbc
5 changed files with 13591 additions and 21003 deletions
+1
View File
@@ -1,5 +1,6 @@
[tools]
go = "1.25.5"
pnpm = "10.28.0"
[tasks.help]
description = "Show common development tasks"
+1 -1
View File
@@ -314,7 +314,7 @@ function TrackedPostit({ skill, index }: { skill: Skill; index: number }) {
const color = getPostitColor(skill, index);
const rotation = getRotation(index);
// Extract repo name from relPath (e.g., "_awesome-unnotech-skills/frontend-dugong" → "awesome-unnotech-skills")
// Extract repo name from relPath (e.g., "_awesome-skillshare-skills/frontend-dugong" → "awesome-skillshare-skills")
const repoName = skill.relPath.startsWith('_')
? skill.relPath.split('/')[0].slice(1).replace(/__/g, '/')
: undefined;
-21002
View File
File diff suppressed because it is too large Load Diff
+13578
View File
File diff suppressed because it is too large Load Diff
+11
View File
@@ -610,6 +610,17 @@ code:not([class*="prism"]) {
/* ========================================
TABLES — Hand-drawn
======================================== */
td code {
word-break: break-all;
overflow-wrap: anywhere;
white-space: normal;
}
.markdown > div:has(> table),
.markdown > table {
overflow-x: auto;
}
table {
display: table;
width: 100%;