diff --git a/web_tree_image_tooltip/static/src/js/tooltip.js b/web_tree_image_tooltip/static/src/js/tooltip.js index 874f0193f..ce57c2799 100644 --- a/web_tree_image_tooltip/static/src/js/tooltip.js +++ b/web_tree_image_tooltip/static/src/js/tooltip.js @@ -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: "", + title: "", delay: 0, }).tooltip('show'); } diff --git a/web_tree_image_tooltip/static/src/scss/common.scss b/web_tree_image_tooltip/static/src/scss/common.scss index cc57053a1..e7ccfbcde 100644 --- a/web_tree_image_tooltip/static/src/scss/common.scss +++ b/web_tree_image_tooltip/static/src/scss/common.scss @@ -1,3 +1,8 @@ .o_image_cell .o_field_image img{ width:30px; } + +.tooltip_image { + max-width:80vw; + max-height:80vh; +} \ No newline at end of file