Skip to content

Commit 826bf71

Browse files
committed
Improve mobile design
1 parent d7639bf commit 826bf71

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/Product/ProductFilters.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const ProductFilters = ({
7979

8080
return (
8181
<div className="w-full md:w-64 flex-shrink-0">
82-
<div className="bg-white p-6 rounded-lg shadow-sm">
82+
<div className="bg-white p-8 sm:p-6 rounded-lg shadow-sm">
8383
<div className="mb-8">
8484
<h3 className="font-semibold mb-4">PRODUKT TYPE</h3>
8585
<div className="space-y-2">

src/components/Product/ProductList.component.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ const ProductList = ({ products, title }: ProductListProps) => {
4343

4444
{/* Main Content */}
4545
<div className="flex-1">
46-
<div className="flex justify-between items-center mb-8">
47-
<h1 className="text-2xl font-medium">
46+
<div className="flex flex-col sm:flex-row sm:justify-between sm:items-center gap-4 mb-8">
47+
<h1 className="text-xl sm:text-2xl font-medium text-center sm:text-left">
4848
{title} <span className="text-gray-500">({filteredProducts.length})</span>
4949
</h1>
5050

51-
<div className="flex items-center gap-4">
52-
<label className="text-sm">Vis produkter:</label>
51+
<div className="flex flex-wrap items-center justify-center sm:justify-end gap-2 sm:gap-4">
52+
<label className="text-sm font-medium">Sortering:</label>
5353
<select
5454
value={sortBy}
5555
onChange={(e) => setSortBy(e.target.value)}
56-
className="border rounded-md px-3 py-1"
56+
className="min-w-[140px] border rounded-md px-3 py-1.5 text-sm"
5757
>
5858
<option value="popular">Populær</option>
5959
<option value="price-low">Pris: Lav til Høy</option>

0 commit comments

Comments
 (0)