[gimp-web/testing] Fix image scaling issue
- From: Pat David <patdavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/testing] Fix image scaling issue
- Date: Thu, 14 Jul 2016 01:16:43 +0000 (UTC)
commit 5839fc761992509e43ec7610ea9402488ded791c
Author: Pat David <patdavid gmail com>
Date: Wed Jul 13 20:13:10 2016 -0500
Fix image scaling issue
Reported by prokoudine
I had set images to have a max-height: 100vh;
(100% of the viewport height). This way any images that are too
tall can be seen in their entirety.
The problem is I had also set the image width: 100%;
this scaled the images funny (they would squish if they were too
tall, but maintain full width).
This commit keeps the image max-height: 100vh; and removes the
width: 100% so the image can resize as needed to viewport height.
themes/newgimp/static/css/article.css | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/themes/newgimp/static/css/article.css b/themes/newgimp/static/css/article.css
index 3eaa33f..56c4281 100644
--- a/themes/newgimp/static/css/article.css
+++ b/themes/newgimp/static/css/article.css
@@ -50,7 +50,7 @@ figure img {
width: initial;
max-width: 100%;
max-height: 100vh;
- width: 100%;
+ /* width: 100%; */
}
.entry-content h1,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]