Files
social-media/frontend/src/views/contents/ImageViewer.vue
2025-01-15 15:24:17 -05:00

31 lines
473 B
Vue

<template>
<div class="image-container">
<img :src="src" alt="Image" class="full-size-image" />
</div>
</template>
<script setup>
const props = defineProps({
src: {
type: String,
required: true,
},
});
</script>
<style scoped>
.image-container {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
overflow: hidden;
}
.image {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
</style>