From 8f6f9cd6faf54b921e0112f1e1af26812b9c44f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Mon, 15 Mar 2021 20:37:39 +0100 Subject: [PATCH] Remove some unnecessary CSS and set MIN_ZOOM to 95 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- res/css/views/elements/_ImageView.scss | 5 ----- src/components/views/elements/ImageView.js | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/res/css/views/elements/_ImageView.scss b/res/css/views/elements/_ImageView.scss index 51e72b7c83..90f265b0c1 100644 --- a/res/css/views/elements/_ImageView.scss +++ b/res/css/views/elements/_ImageView.scss @@ -35,11 +35,6 @@ limitations under the License. .mx_ImageView_image { pointer-events: all; - - max-width: 95vw; - max-height: 95vh; - min-width: 100px; - min-height: 100px; } .mx_ImageView_panel { diff --git a/src/components/views/elements/ImageView.js b/src/components/views/elements/ImageView.js index dc51ff019d..a8e70fe700 100644 --- a/src/components/views/elements/ImageView.js +++ b/src/components/views/elements/ImageView.js @@ -31,7 +31,7 @@ import {formatFullDate} from "../../../DateUtils"; import dis from '../../../dispatcher/dispatcher'; import {replaceableComponent} from "../../../utils/replaceableComponent"; -const MIN_ZOOM = 100; +const MIN_ZOOM = 95; const MAX_ZOOM = 300; // This is used for the buttons const ZOOM_STEP = 10; @@ -61,7 +61,7 @@ export default class ImageView extends React.Component { super(props); this.state = { rotation: 0, - zoom: 100, + zoom: 95, translationX: 0, translationY: 0, moving: false,