diff --git a/frappe/public/css/sidebar.css b/frappe/public/css/sidebar.css index 750a049dc2..0d6f6185a7 100644 --- a/frappe/public/css/sidebar.css +++ b/frappe/public/css/sidebar.css @@ -134,7 +134,7 @@ body[data-route^="Module"] .main-menu .form-sidebar { height: 0; padding-bottom: 100%; border-radius: 6px; - background-size: cover; + background-size: 100% 100%; background-repeat: no-repeat; background-position: center center; } @@ -305,7 +305,3 @@ a.close:focus { .layout-side-section .module-sidebar-nav { margin-top: 15px; } - -.sidebar-image { - background-size: 100% 100% !important; -} \ No newline at end of file diff --git a/frappe/public/less/list.less b/frappe/public/less/list.less index 965fa186c3..e3a3beeeb4 100644 --- a/frappe/public/less/list.less +++ b/frappe/public/less/list.less @@ -301,6 +301,7 @@ table.field-info tr td { } .image-field { + background-size: 100% 100% !important; position: relative; } diff --git a/frappe/public/less/sidebar.less b/frappe/public/less/sidebar.less index 655b2e3604..ecf6882e45 100644 --- a/frappe/public/less/sidebar.less +++ b/frappe/public/less/sidebar.less @@ -181,7 +181,7 @@ body[data-route^="Module"] .main-menu { height: 0; padding-bottom: 100%; border-radius: 6px; - background-size: cover; + background-size: 100% 100%; background-repeat: no-repeat; background-position: center center; }