forked from Techsystech/web
web_tree_image_tooltip: add image width and height limit in tooltip
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;
|
||||
}
|
Loading…
Reference in New Issue