mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
web_tree_image_tooltip: add image width and height limit in tooltip
This commit is contained in:
committed by
Christopher Ormaza
parent
a0163fe228
commit
9a5a148cea
@@ -11,7 +11,7 @@ odoo.define('web_tree_image_tooltip.web_tree_image_tooltip',
|
||||
var img_src =
|
||||
$(event.currentTarget).children('.img-fluid').attr('src')
|
||||
$(event.currentTarget).tooltip({
|
||||
title: "<img src="+img_src+" />",
|
||||
title: "<img src="+img_src+" class='tooltip_image' />",
|
||||
delay: 0,
|
||||
}).tooltip('show');
|
||||
}
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
.o_image_cell .o_field_image img{
|
||||
width:30px;
|
||||
}
|
||||
|
||||
.tooltip_image {
|
||||
max-width:80vw;
|
||||
max-height:80vh;
|
||||
}
|
||||
Reference in New Issue
Block a user