pinafore/routes/_components/status/VideoDialog.html

26 lines
452 B
HTML

<ModalDialog :shown>
<video poster="{{poster}}"
src="{{src}}"
aria-label="Video: {{description || ''}}"
controls
/>
</ModalDialog>
<style>
:global(.modal-dialog video) {
max-width: 100%;
}
</style>
<script>
import ModalDialog from '../ModalDialog.html'
export default {
components: {
ModalDialog
},
methods: {
async show() {
this.set({shown: true})
}
}
}
</script>