mirror of https://github.com/OCA/web.git
commit
2598ca464f
|
@ -11,7 +11,7 @@ odoo.define('web_tree_image_tooltip.web_tree_image_tooltip',
|
||||||
var img_src =
|
var img_src =
|
||||||
$(event.currentTarget).children('.img-fluid').attr('src')
|
$(event.currentTarget).children('.img-fluid').attr('src')
|
||||||
$(event.currentTarget).tooltip({
|
$(event.currentTarget).tooltip({
|
||||||
title: "<img src="+img_src+" />",
|
title: "<img src="+img_src+" class='tooltip_image' />",
|
||||||
delay: 0,
|
delay: 0,
|
||||||
}).tooltip('show');
|
}).tooltip('show');
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
.o_image_cell .o_field_image img{
|
.o_image_cell .o_field_image img{
|
||||||
width:30px;
|
width:30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tooltip_image {
|
||||||
|
max-width:80vw;
|
||||||
|
max-height:80vh;
|
||||||
|
}
|
Loading…
Reference in New Issue