Skip to content

Commit 0676a93

Browse files
authored
Merge pull request #8523 from ProcessMaker/bugfix/FOUR-26546
FOUR-26546:Arrows are not displayed in the carousel when Process information is opened
2 parents d503bac + d6a9714 commit 0676a93

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

resources/js/processes-catalogue/components/CarouselSlide.vue

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,22 @@
33
<b-carousel
44
ref="carousel"
55
:interval="0"
6-
controls
6+
class="carousel"
77
>
8+
<div class="controls tw-flex tw-content-stretch tw-absolute tw-w-full tw-z-10 tw-top-1/2 tw-flex-wrap">
9+
<button
10+
class="tw-content-center tw-grow tw-left-0 tw-absolute tw-bg-transparent tw-color-[#556271] tw-text-xl"
11+
@click="prevSlide()"
12+
>
13+
<i class="fas fa-caret-left" />
14+
</button>
15+
<button
16+
class="tw-content-center tw-grow tw-right-0 tw-absolute tw-bg-transparent tw-color-[#556271] tw-text-xl"
17+
@click="nextSlide()"
18+
>
19+
<i class="fas fa-caret-right" />
20+
</button>
21+
</div>
822
<b-carousel-slide
923
v-for="(image, index) in images.length > 0 ? images : defaultImage"
1024
:key="index"
@@ -68,6 +82,12 @@ export default {
6882
);
6983
},
7084
methods: {
85+
prevSlide() {
86+
this.$refs.carousel.prev();
87+
},
88+
nextSlide() {
89+
this.$refs.carousel.next();
90+
},
7191
resizeCarousel(url, index) {
7292
this.fullPage = !this.fullPage;
7393
this.$emit("full-carousel", {
@@ -80,6 +100,12 @@ export default {
80100
</script>
81101

82102
<style scoped>
103+
.controls {
104+
display: none;
105+
}
106+
.carousel:hover .controls {
107+
display: block;
108+
}
83109
.carousel-normal {
84110
width: 100%;
85111
height: auto;

0 commit comments

Comments
 (0)