feat: update SoundCard styling and adjust layout in SoundsPage for better responsiveness
Some checks failed
Frontend CI / lint (push) Failing after 18s
Frontend CI / build (push) Has been skipped

This commit is contained in:
JSC
2025-09-22 20:43:09 +02:00
parent 756e1307f1
commit 79d9bd7f76
2 changed files with 3 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ export function SoundCard({ sound, playSound, onFavoriteToggle, colorClasses }:
{/* Type badge */} {/* Type badge */}
<Badge <Badge
variant={getBadgeVariant(sound.type)} variant={getBadgeVariant(sound.type)}
className="absolute top-2 left-2 text-xs px-1.5 py-0.5 h-5" className="absolute top-2 left-2 text-xs px-1 py-0 h-4 text-[10px]"
> >
{sound.type} {sound.type}
</Badge> </Badge>
@@ -79,7 +79,7 @@ export function SoundCard({ sound, playSound, onFavoriteToggle, colorClasses }:
/> />
</button> </button>
<h3 className="font-medium text-s truncate pl-12 pr-8">{sound.name}</h3> <h3 className="font-medium text-s truncate pl-8 pr-6">{sound.name}</h3>
<div className="grid grid-cols-2 gap-1 text-xs text-muted-foreground"> <div className="grid grid-cols-2 gap-1 text-xs text-muted-foreground">
<div className="flex"> <div className="flex">
<Clock className="h-3.5 w-3.5 mr-0.5" /> <Clock className="h-3.5 w-3.5 mr-0.5" />

View File

@@ -307,7 +307,7 @@ export function SoundsPage() {
} }
return ( return (
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4"> <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 gap-4">
{sounds.map((sound, idx) => ( {sounds.map((sound, idx) => (
<SoundCard <SoundCard
key={sound.id} key={sound.id}