fix(web): improve mobile and tablet responsiveness (#237)
- Remove fixed min-width constraints from comparison tables - compare.tsx: remove min-w-[860px] - alternatives.tsx: remove min-w-[600px] - privacy.tsx: remove min-w-[500px] - Tables now use native overflow-x-auto for horizontal scroll - Fix subpage navigation overflow on mobile: - Show only icons on mobile (no text labels) - Add horizontal scroll support - Add proper aria-labels for accessibility - Add hover states for better touch feedback Fixes responsive design issues identified during mobile audit.
This commit is contained in:
@@ -77,17 +77,18 @@ export function SeoSubpageShell({ children }: SeoSubpageShellProps) {
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div className="mx-auto flex max-w-6xl gap-2 px-4 pb-4 sm:hidden">
|
||||
<div className="mx-auto flex max-w-6xl gap-2 overflow-x-auto px-4 pb-4 sm:hidden scrollbar-thin">
|
||||
{navLinks.map((item) => {
|
||||
const Icon = item.icon;
|
||||
return (
|
||||
<Link
|
||||
key={item.href}
|
||||
href={item.href}
|
||||
className="inline-flex items-center gap-1 rounded-lg border border-zinc-200 bg-white px-3 py-1.5 text-xs font-medium text-muted-foreground dark:border-zinc-700 dark:bg-zinc-800"
|
||||
title={item.label}
|
||||
className="inline-flex items-center justify-center rounded-lg border border-zinc-200 bg-white p-2 text-muted-foreground transition-colors hover:bg-zinc-50 hover:text-foreground dark:border-zinc-700 dark:bg-zinc-800 dark:hover:bg-zinc-700"
|
||||
aria-label={item.label}
|
||||
>
|
||||
<Icon className="h-3.5 w-3.5" />
|
||||
{item.label}
|
||||
<Icon className="h-4 w-4" />
|
||||
</Link>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user