mirror of
https://github.com/Rakantor/personal-portfolio.git
synced 2025-12-17 19:36:32 +01:00
Fix carousel controls obscuring the image
This commit is contained in:
@@ -11,10 +11,11 @@
|
|||||||
:model-value="index"
|
:model-value="index"
|
||||||
:show-arrows="images.length > 1"
|
:show-arrows="images.length > 1"
|
||||||
class="ma-auto"
|
class="ma-auto"
|
||||||
:height="carouselHeight"
|
height="90vh"
|
||||||
>
|
>
|
||||||
<v-carousel-item v-for="image of images" :key="image"
|
<v-carousel-item v-for="image of images" :key="image"
|
||||||
:src="image"
|
:src="image"
|
||||||
|
class="img-height"
|
||||||
></v-carousel-item>
|
></v-carousel-item>
|
||||||
</v-carousel>
|
</v-carousel>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
@@ -27,11 +28,14 @@ export default {
|
|||||||
show: false,
|
show: false,
|
||||||
images: [],
|
images: [],
|
||||||
index: 0
|
index: 0
|
||||||
}),
|
})
|
||||||
computed: {
|
|
||||||
carouselHeight () {
|
|
||||||
return window.innerHeight * 0.9
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
@use 'vuetify/settings';
|
||||||
|
|
||||||
|
.img-height {
|
||||||
|
height: calc(90vh - settings.$carousel-controls-size);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user