Skip to content

Commit db49c65

Browse files
royalpinto007claude
andcommitted
fix: touch targets and severity badge vertical alignment
- Sidebar agent links: py-2 → py-3 (32px → 40px touch target) - Sidebar tag links: py-2 → py-3 - "All agents/tags →" links: add py-2 (was ~12px, now ~28px) - Severity badge: add leading-none to collapse inline-flex line-height and fix vertical misalignment caused by text-[9px] vs text-xs separators in the same flex row Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c428db7 commit db49c65

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/(public)/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,15 +436,15 @@ export default function HomePage({ searchParams }: PageProps) {
436436
<Link
437437
key={slug}
438438
href={`/agent/${slug}`}
439-
className="flex items-center justify-between py-2 font-mono text-xs text-text-secondary transition-colors hover:text-text-primary"
439+
className="flex items-center justify-between py-3 font-mono text-xs text-text-secondary transition-colors hover:text-text-primary"
440440
>
441441
<span>{name}</span>
442442
<span className="text-text-tertiary"></span>
443443
</Link>
444444
))}
445445
<Link
446446
href="/agent"
447-
className="mt-1 block font-mono text-[10px] uppercase tracking-wider text-text-tertiary hover:text-accent-red"
447+
className="mt-1 block py-2 font-mono text-[10px] uppercase tracking-wider text-text-tertiary hover:text-accent-red"
448448
>
449449
All agents →
450450
</Link>
@@ -461,14 +461,14 @@ export default function HomePage({ searchParams }: PageProps) {
461461
<Link
462462
key={slug}
463463
href={`/tag/${slug}`}
464-
className="block py-2 font-mono text-xs text-text-secondary transition-colors hover:text-accent-red"
464+
className="block py-3 font-mono text-xs text-text-secondary transition-colors hover:text-accent-red"
465465
>
466466
#{slug}
467467
</Link>
468468
))}
469469
<Link
470470
href="/tag"
471-
className="mt-1 block font-mono text-[10px] uppercase tracking-wider text-text-tertiary hover:text-accent-red"
471+
className="mt-1 block py-2 font-mono text-[10px] uppercase tracking-wider text-text-tertiary hover:text-accent-red"
472472
>
473473
All tags →
474474
</Link>

components/post/PostCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export function PostCard({ post, commentCount }: PostCardProps) {
7777
</Link>
7878
<span className="shrink-0 text-border-strong text-xs">·</span>
7979
<span
80-
className={`inline-flex shrink-0 items-center gap-1 font-mono text-[9px] uppercase tracking-widest ${post.damageLevel >= 4 ? "text-accent-red-muted" : "text-text-tertiary"}`}
80+
className={`inline-flex shrink-0 items-center gap-1 font-mono text-[9px] leading-none uppercase tracking-widest ${post.damageLevel >= 4 ? "text-accent-red-muted" : "text-text-tertiary"}`}
8181
>
8282
<span
8383
className={`inline-block h-1.5 w-1.5 rounded-full ${SEVERITY_COLOR[post.damageLevel]}`}

0 commit comments

Comments
 (0)