Skip to content

Commit

Permalink
Use slots
Browse files Browse the repository at this point in the history
  • Loading branch information
fagubla committed Feb 21, 2024
1 parent 0209c8e commit 8ddfe24
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions resources/js/processes-catalogue/components/ProcessesCarousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,15 @@
v-for="(image, index) in images.length > 0 ? images : defaultImage"
:key="index"
class="custom-style"
:img-src="image.url"
/>
>
<template #img>
<img
:src="image.url"
:alt="process.name"
class="d-block w-100 img-carousel"
>
</template>
</b-carousel-slide>
</b-carousel>
</div>
</template>
Expand Down Expand Up @@ -74,7 +81,7 @@ export default {
},
};
</script>
<style lang="scss">
<style lang="scss" scoped>
#processes-carousel {
.carousel-indicators {
li {
Expand Down Expand Up @@ -104,7 +111,7 @@ export default {
width: 100%;
height: 400px;
}
.img-fluid {
.img-carousel {
max-width: 100%;
height: inherit;
}
Expand Down

0 comments on commit 8ddfe24

Please sign in to comment.