desktop: count on product id from localstorage since no product id in url
This commit is contained in:
@@ -33,7 +33,7 @@ export default function ProductCard({ item }: Props) {
|
||||
|
||||
// Handle product click - open dialog on desktop, navigate on mobile/tablet
|
||||
const handleProductClick = (item: Product) => {
|
||||
localStorage.setItem("product", JSON.stringify(item));
|
||||
localStorage.setItem("productId", item.id.toString());
|
||||
if (isDesktop) {
|
||||
setIsDialogOpen(true);
|
||||
} else {
|
||||
|
||||
@@ -223,7 +223,7 @@
|
||||
/* Tablet Styles (769px - 1024px) */
|
||||
@media (min-width: 769px) and (max-width: 1024px) {
|
||||
.logo {
|
||||
left: 40px;
|
||||
left: 24px !important;
|
||||
width: 80px !important;
|
||||
height: 80px !important;
|
||||
top: 142px !important;
|
||||
@@ -311,7 +311,7 @@
|
||||
/* Desktop Styles (min-width: 1025px) */
|
||||
@media (min-width: 1025px) {
|
||||
.logo {
|
||||
left: 33px;
|
||||
left: 38px !important;
|
||||
top: 114px !important;
|
||||
width: 150px !important;
|
||||
height: 150px !important;
|
||||
|
||||
Reference in New Issue
Block a user