Skip to content

Commit

Permalink
feat: responsive stores
Browse files Browse the repository at this point in the history
  • Loading branch information
sadmann7 committed May 5, 2024
1 parent 04364fd commit 245aa38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/(dashboard)/dashboard/stores/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default async function StoresPage() {
planMetricsPromise={planMetricsPromise}
/>
</PageHeader>
<section className="flex items-center gap-4">
<section className="grid gap-4 md:grid-cols-2 xl:grid-cols-4">
<React.Suspense
fallback={Array.from({ length: 3 }).map((_, i) => (
<StoreCardSkeleton key={i} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/store-card-skeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function StoreCardSkeleton() {
<Skeleton className="h-4 w-1/2" />
<Skeleton className="h-4 w-1/4" />
</CardHeader>
<CardContent className="flex items-center gap-4 pt-4">
<CardContent className="flex flex-wrap items-center gap-4 pt-4">
<Skeleton className="h-4 w-1/3" />
<Skeleton className="h-4 w-1/3" />
<Skeleton className="h-4 w-1/3" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/store-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function StoreCard({ store, href }: StoreCardProps) {
: `Explore ${store.name} products`}
</CardDescription>
</CardHeader>
<CardContent className="flex items-center gap-4 pt-4 text-[0.8rem] text-muted-foreground">
<CardContent className="flex flex-wrap items-center gap-4 pt-4 text-[0.8rem] text-muted-foreground">
<div className="flex items-center">
<Icons.product className="mr-1.5 size-3.5" aria-hidden="true" />
{store.productCount} products
Expand Down

0 comments on commit 245aa38

Please sign in to comment.