From 87d360ea01973c6b1fd3098829448724c6238b93 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Mon, 12 May 2025 01:13:15 +0330 Subject: [PATCH] Update categories arrows --- frontend/components/home/Categories.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/frontend/components/home/Categories.vue b/frontend/components/home/Categories.vue index dbb952c..cc303e6 100644 --- a/frontend/components/home/Categories.vue +++ b/frontend/components/home/Categories.vue @@ -9,9 +9,13 @@ import { EffectCoverflow } from "swiper/modules"; // state const { data: homeData } = useHomeData(); + const swiper_instance = ref(null); const activeIndex = ref(0); +const slideElement = ref(null); +const { width: slideWidth } = useElementSize(slideElement); + // methods const onSwiper = (swiper: SwiperClass) => { @@ -67,6 +71,7 @@ const onSlideChange = (swiper: SwiperClass) => { }" > @@ -85,7 +90,10 @@ const onSlideChange = (swiper: SwiperClass) => {
{
{ class="rounded-full max-xs:typo-label-sm !px-4 xs:!px-8" end-icon="ci:arrow-left" > + {{ slideWidth }} مشاهده همه دسته ها