Files
social-media/src/views/contents/ImageViewer.vue
PascalMarchesseault c67b83d367 Tweaking Post UI
2024-08-07 03:05:44 -04: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>