diff --git a/src/BIMDataComponents/BIMDataCarousel/BIMDataCarousel.vue b/src/BIMDataComponents/BIMDataCarousel/BIMDataCarousel.vue index e9ebc9b3..7a1aa015 100644 --- a/src/BIMDataComponents/BIMDataCarousel/BIMDataCarousel.vue +++ b/src/BIMDataComponents/BIMDataCarousel/BIMDataCarousel.vue @@ -63,6 +63,11 @@ export default { translations: [], }; }, + watch: { + minGap() { + this.distributeItems(); + }, + }, mounted() { this.distributeItems(); this.resizeObserver = new ResizeObserver(() => this.distributeItems()); diff --git a/src/web/views/Components/Carousel/Carousel.vue b/src/web/views/Components/Carousel/Carousel.vue index f74ea0a2..dc3c1d64 100644 --- a/src/web/views/Components/Carousel/Carousel.vue +++ b/src/web/views/Components/Carousel/Carousel.vue @@ -13,11 +13,20 @@ :minGap="+minGap" >
+ > + {{ i }} + @@ -28,12 +37,6 @@ placeholder="Carousel width" v-model="carouselWidth" /> - + /> + +