mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
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:
@@ -1,5 +1,6 @@
|
||||
[tools]
|
||||
go = "1.25.5"
|
||||
pnpm = "10.28.0"
|
||||
|
||||
[tasks.help]
|
||||
description = "Show common development tasks"
|
||||
|
||||
@@ -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;
|
||||
|
||||
Generated
-21002
File diff suppressed because it is too large
Load Diff
Generated
+13578
File diff suppressed because it is too large
Load Diff
@@ -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%;
|
||||
|
||||
Reference in New Issue
Block a user