From 417d347a9b04581114d44fb996903ae2a0db4220 Mon Sep 17 00:00:00 2001 From: Tony Air Date: Wed, 28 Apr 2021 22:36:15 +0700 Subject: [PATCH] IMPR: Minor updates --- package.json | 2 +- src/scss/_window.scss | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f0b3fe9..e46448e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@a2nt/meta-lightbox-react", - "version": "3.1.2", + "version": "3.1.3", "description": "ReactJS: Universal Lightbox window", "author": "Tony Air ", "license": "BSD-2-Clause", diff --git a/src/scss/_window.scss b/src/scss/_window.scss index 036abda..4b6975a 100755 --- a/src/scss/_window.scss +++ b/src/scss/_window.scss @@ -180,8 +180,10 @@ $module_name: 'meta-MetaWindow'; width: 100%; overflow: auto; word-break: break-word; + margin: 0 auto; img { + object-fit: cover; max-width: 100%; max-height: 100%; } @@ -207,6 +209,7 @@ $module_name: 'meta-MetaWindow'; .typography, .meta-wrap { + overflow: hidden; display: flex; justify-content: center; align-items: center;