Skip to content

Commit

Permalink
Merge PR #1421 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Nov 4, 2019
2 parents da0d826 + 64eb0ce commit 2598ca4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web_tree_image_tooltip/static/src/js/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down
5 changes: 5 additions & 0 deletions web_tree_image_tooltip/static/src/scss/common.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.o_image_cell .o_field_image img{
width:30px;
}

.tooltip_image {
max-width:80vw;
max-height:80vh;
}

0 comments on commit 2598ca4

Please sign in to comment.