pinafore/routes/_components/status/VideoDialog.html
2018-02-04 15:08:34 -08:00

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>