diff --git a/frappe/public/css/list.css b/frappe/public/css/list.css index eb56bd463a..c4c8c78f40 100644 --- a/frappe/public/css/list.css +++ b/frappe/public/css/list.css @@ -189,20 +189,16 @@ width: 37px; text-align: left; } - .image-view { float: left; } - .image-view-subject { padding: inherit; } - .image-view-col { padding-bottom: 5px; padding-top: 5px; } - table.field-info { opacity: 0; bottom: -20px; @@ -212,28 +208,25 @@ table.field-info { position: absolute; padding-bottom: 0px !important; } - .zoom-view { top: 10px !important; right: 10px !important; width: 36px; height: 36px; opacity: 0; - font-size: 20px; + font-size: 16px; color: black; position: absolute; padding: 0px !important; border-radius: 20px; + border: 0px; } - .image-field { position: relative; } - .image-field:hover .field-info { opacity: 0.9; } - .image-field:hover .zoom-view { opacity: 1; -} \ No newline at end of file +} diff --git a/frappe/public/js/frappe/ui/listing.js b/frappe/public/js/frappe/ui/listing.js index 817a3fdae1..c8416e5145 100644 --- a/frappe/public/js/frappe/ui/listing.js +++ b/frappe/public/js/frappe/ui/listing.js @@ -348,7 +348,7 @@ frappe.ui.Listing = Class.extend({ event.preventDefault(); opts = { doctype: me.doctype, - docname: $(event.target).attr('data-name'), + docname: $(this).parent().attr('data-name'), container: me.$w }; new frappe.views.ImageView(opts); diff --git a/frappe/public/less/list.less b/frappe/public/less/list.less index 20b3bbf6c7..cee88e9e17 100644 --- a/frappe/public/less/list.less +++ b/frappe/public/less/list.less @@ -244,3 +244,52 @@ width: 37px; text-align: left; } + +.image-view { + float: left; +} + +.image-view-subject { + padding: inherit; +} + +.image-view-col { + padding-bottom: 5px; + padding-top: 5px; +} + +table.field-info { + opacity: 0; + bottom: -20px; + font-size: 8pt; + color: white; + background-color: #000000; + position: absolute; + padding-bottom: 0px !important; +} + +.zoom-view { + top: 10px !important; + right: 10px !important; + width: 36px; + height: 36px; + opacity: 0; + font-size: 16px; + color: black; + position: absolute; + padding: 0px !important; + border-radius: 20px; + border: 0px; +} + +.image-field { + position: relative; +} + +.image-field:hover .field-info { + opacity: 0.9; +} + +.image-field:hover .zoom-view { + opacity: 1; +}