Skip to content

Commit 7d9c610

Browse files
committed
feat(up): Update Swiper to v12 and adjust product page styles
Upgraded Swiper from v11.2.10 to v12.0.1 in dependencies. Updated Swiper button styles on the product page for improved appearance and removed an unused CSS variable.
1 parent 77cff62 commit 7d9c610

File tree

3 files changed

+31
-12
lines changed

3 files changed

+31
-12
lines changed

app/pages/product/[id].vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ const { handleAddToCart, addToCartButtonStatus } = useCart();
7777
<div class="relative">
7878
<swiper
7979
:style="{
80-
'--swiper-navigation-size': '16px',
8180
'--swiper-navigation-color': '#000',
8281
'--swiper-pagination-color': 'rgb(0 0 0 / 50%)',
8382
}"
@@ -186,7 +185,7 @@ const { handleAddToCart, addToCartButtonStatus } = useCart();
186185
}
187186
.swiper-button-next,
188187
.swiper-button-prev {
189-
@apply bg-white/50 hover:bg-white p-6 rounded-full flex items-center justify-center shadow transition backdrop-blur-sm;
188+
@apply bg-white/50 hover:bg-white p-3.5 m-2 rounded-full flex items-center justify-center shadow transition backdrop-blur-sm;
190189
}
191190
192191
.swiper-button-prev.swiper-button-disabled,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"notivue": "^2.4.5",
2323
"nuxt": "^4.1.2",
2424
"nuxt-graphql-request": "^8.1.1",
25-
"swiper": "^11.2.10",
25+
"swiper": "^12.0.1",
2626
"vue": "latest"
2727
},
2828
"devDependencies": {

pnpm-lock.yaml

Lines changed: 29 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)