From d21738740061044f733ddcf714e47df61aeae82d Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Tue, 9 Aug 2016 14:15:31 +0530 Subject: [PATCH] [ui] fix thumbnail for long images in image view --- erpnext/public/css/erpnext.css | 5 +++-- erpnext/public/less/erpnext.less | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/erpnext/public/css/erpnext.css b/erpnext/public/css/erpnext.css index b8d51c02bdd..d67f9e07314 100644 --- a/erpnext/public/css/erpnext.css +++ b/erpnext/public/css/erpnext.css @@ -46,9 +46,10 @@ line-height: 0; color: #d1d8dd; font-size: 30px; - background-size: cover; + background-size: contain; border: 1px solid transparent; - background-position: top center; + background-position: center; + background-repeat: no-repeat; } .pos-item-area { border: 1px solid #d1d8dd; diff --git a/erpnext/public/less/erpnext.less b/erpnext/public/less/erpnext.less index 896aee79d99..d39f92497fe 100644 --- a/erpnext/public/less/erpnext.less +++ b/erpnext/public/less/erpnext.less @@ -58,9 +58,10 @@ line-height: 0; color: @text-extra-muted; font-size: 30px; - background-size: cover; + background-size: contain; border: 1px solid transparent; - background-position: top center; + background-position: center; + background-repeat: no-repeat; } .pos-item-area {