Remove some unnecessary CSS and set MIN_ZOOM to 95

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-03-15 20:37:39 +01:00
parent e45035582d
commit 8f6f9cd6fa
No known key found for this signature in database
GPG key ID: 9760693FDD98A790
2 changed files with 2 additions and 7 deletions

View file

@ -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 {

View file

@ -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,