EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
cleanup
Yuri Kuznetsov7b0217be6aa7
diff --git a/client/src/views/modals/image-preview.js b/client/src/views/modals/image-preview.jsindex 6735b753d0..0c7bba35cb 100644--- a/client/src/views/modals/image-preview.js+++ b/client/src/views/modals/image-preview.js@@ -277,19 +277,15 @@ class ImagePreviewModalView extends ModalView {onMaximize() {- /** @type {HTMLDivElement} */- const body = this.element.querySelector('.modal-body');-const width = this.imageContainerElement.clientWidth- const height = body.clientHeight;this.imageElement.style.maxWidth = width + 'px';- //this.imageElement.style.maxHeight = height + 'px';}onMinimize() {- this.imageElement.style.maxWidth = this.imageContainerElement.clientWidth + 'px';- //this.imageElement.style.maxHeight = '';+ const width = this.imageContainerElement.clientWidth++ this.imageElement.style.maxWidth = width + 'px';}}