Fixe image display
This commit is contained in:
@@ -54,7 +54,7 @@
|
|||||||
<v-carousel-item
|
<v-carousel-item
|
||||||
v-for="url in props.content.urls"
|
v-for="url in props.content.urls"
|
||||||
:key="url"
|
:key="url"
|
||||||
class="image-container"
|
class="max-w-[800px]"
|
||||||
@click="redirectToContent"
|
@click="redirectToContent"
|
||||||
>
|
>
|
||||||
<component :is="getComponent(url)" :src="url"></component>
|
<component :is="getComponent(url)" :src="url"></component>
|
||||||
@@ -229,19 +229,7 @@ function redirectToContent() {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.image-container {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
overflow: hidden;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.image-container img {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: cover;
|
|
||||||
}
|
|
||||||
|
|
||||||
.custom-border {
|
.custom-border {
|
||||||
border-color: #EAEBEC;
|
border-color: #EAEBEC;
|
||||||
|
|||||||
Reference in New Issue
Block a user