2019-12-23 20:49:21 +00:00
|
|
|
<template>
|
|
|
|
<Modal @close="$emit('close')">
|
|
|
|
<template #body>
|
2024-01-07 20:39:33 +00:00
|
|
|
<AuthenticatedImage
|
2019-12-23 20:49:21 +00:00
|
|
|
class="img-fluid rounded mx-auto d-block mb-3 w-100"
|
2024-01-07 20:39:33 +00:00
|
|
|
:src="`/media/2/${file}/`"
|
2019-12-23 20:49:21 +00:00
|
|
|
alt="Image not available."
|
|
|
|
id="lightbox-image"
|
2024-01-07 20:39:33 +00:00
|
|
|
/>
|
2019-12-23 20:49:21 +00:00
|
|
|
</template>
|
|
|
|
<template #buttons>
|
|
|
|
<button type="button" class="btn btn-secondary" @click="$emit('close')">Cancel</button>
|
|
|
|
</template>
|
|
|
|
</Modal>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Modal from '@/components/Modal';
|
2023-12-27 16:42:04 +00:00
|
|
|
import AuthenticatedImage from "@/components/AuthenticatedImage.vue";
|
2019-12-23 20:49:21 +00:00
|
|
|
|
|
|
|
export default {
|
2023-11-27 00:14:52 +00:00
|
|
|
name: 'Lightbox',
|
2023-12-27 16:42:04 +00:00
|
|
|
components: {Modal, AuthenticatedImage},
|
2024-01-07 20:39:33 +00:00
|
|
|
props: ['file']
|
2019-12-23 20:49:21 +00:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
2023-11-27 00:14:52 +00:00
|
|
|
#lightbox-image {
|
2019-12-23 20:49:21 +00:00
|
|
|
max-height: 75vh;
|
|
|
|
object-fit: contain;
|
2023-11-27 00:14:52 +00:00
|
|
|
}
|
2019-12-23 20:49:21 +00:00
|
|
|
</style>
|