feat(style): change pagination swiper styles
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
<template>
|
||||
<div class="aspect-w-4 aspect-h-3">
|
||||
<swiper
|
||||
:style="{
|
||||
'--swiper-navigation-color': '#fff',
|
||||
'--swiper-pagination-color': '#fff',
|
||||
}"
|
||||
:lazy="true"
|
||||
:pagination="pagination"
|
||||
:navigation="true"
|
||||
@@ -80,7 +76,7 @@ export default {
|
||||
dynamicBullets: true,
|
||||
},
|
||||
modules: [Pagination],
|
||||
onTouchMove, // ← вот это добавь
|
||||
onTouchMove,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
@@ -8,6 +8,16 @@ html, body, #app {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
html {
|
||||
--swiper-pagination-color: var(--color-primary);
|
||||
--swiper-pagination-bullet-inactive-color: var(--color-base-content);
|
||||
}
|
||||
|
||||
.swiper-pagination-bullets {
|
||||
border-radius: var(--radius-selector);
|
||||
padding: 5px 0;
|
||||
}
|
||||
|
||||
#app {
|
||||
position: relative;
|
||||
padding-top: var(--tg-content-safe-area-inset-top);
|
||||
|
||||
Reference in New Issue
Block a user