diff --git a/frontend/src/components/buttons/PreviewSize.vue b/frontend/src/components/buttons/PreviewSize.vue
new file mode 100644
index 00000000..3183b56f
--- /dev/null
+++ b/frontend/src/components/buttons/PreviewSize.vue
@@ -0,0 +1,22 @@
+
+
+
+
+
diff --git a/frontend/src/components/files/ExtendedImage.vue b/frontend/src/components/files/ExtendedImage.vue
index aeb27981..4cfe247e 100644
--- a/frontend/src/components/files/ExtendedImage.vue
+++ b/frontend/src/components/files/ExtendedImage.vue
@@ -77,6 +77,13 @@ export default {
window.removeEventListener('resize', this.onResize)
document.removeEventListener('mouseup', this.onMouseUp)
},
+ watch: {
+ src: function () {
+ this.scale = 1
+ this.setZoom()
+ this.setCenter()
+ }
+ },
methods: {
onLoad() {
let img = this.$refs.imgex
diff --git a/frontend/src/components/files/Preview.vue b/frontend/src/components/files/Preview.vue
index 519e259a..7a2ded1b 100644
--- a/frontend/src/components/files/Preview.vue
+++ b/frontend/src/components/files/Preview.vue
@@ -9,6 +9,7 @@
{{ this.name }}
+
@@ -65,8 +66,9 @@