Skip to content

Commit

Permalink
[change] カルーセルのスタイル調整
Browse files Browse the repository at this point in the history
  • Loading branch information
Simo-C3 committed Nov 30, 2022
1 parent 0ab4853 commit 802d8ac
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
6 changes: 5 additions & 1 deletion components/works/WorksCarousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
<!-- main swiper -->
<works-carousel-main :assets="showAssets" v-model="slideNumber" />
<!-- thumb swiper -->
<works-carousel-thumb :assets="showAssets" v-model="slideNumber" />
<works-carousel-thumb
v-if="showAssets.length > 1"
:assets="showAssets"
v-model="slideNumber"
/>
</div>
</template>

Expand Down
22 changes: 20 additions & 2 deletions components/works/WorksCarouselMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,30 @@
@mouseenter="showSwiperButtonNext = true"
></div>
<div
class="absolute top-0 left-0 h-full w-[10%] z-10"
class="
absolute
top-0
left-0
h-[43vw]
min-h-[68%]
max-h-[85%]
w-[10%]
z-10
"
@mouseover="showSwiperButtonPrev = true"
@mouseleave="showSwiperButtonPrev = false"
></div>
<div
class="absolute top-0 right-0 h-full w-[10%] z-10"
class="
absolute
top-0
right-0
h-[43vw]
min-h-[68%]
max-h-[85%]
w-[10%]
z-10
"
@mouseenter="showSwiperButtonNext = true"
@mouseout="showSwiperButtonNext = false"
></div>
Expand Down
5 changes: 4 additions & 1 deletion components/works/WorksCarouselThumb.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
"
ref="SliderWrapper"
>
<div class="flex justify-center items-center h-full w-max" ref="Slider">
<div
class="flex justify-center items-center h-full w-max mx-auto my-0"
ref="Slider"
>
<div
v-for="(asset, index) in assets"
:key="index"
Expand Down

0 comments on commit 802d8ac

Please sign in to comment.