diff --git a/src/routes/_components/dialog/components/ImageDialog.html b/src/routes/_components/dialog/components/ImageDialog.html
index dfc16827..4e29e298 100644
--- a/src/routes/_components/dialog/components/ImageDialog.html
+++ b/src/routes/_components/dialog/components/ImageDialog.html
@@ -9,9 +9,7 @@
@@ -54,6 +51,14 @@
components: {
ModalDialog
},
+ computed: {
+ style: ({ width, height }) => `
+ width: ${width ? width + 'px' : 'auto'};
+ height: ${height ? height + 'px' : 'auto'};`,
+ videoStyle: ({ style, poster }) => `
+ ${style}
+ background-image: url(${poster});`
+ },
methods: {
show
}
diff --git a/src/routes/_components/dialog/components/VideoDialog.html b/src/routes/_components/dialog/components/VideoDialog.html
index 17b7d1b7..8c67b9ee 100644
--- a/src/routes/_components/dialog/components/VideoDialog.html
+++ b/src/routes/_components/dialog/components/VideoDialog.html
@@ -8,8 +8,7 @@
>