diff --git a/addons/web/static/src/js/libs/popper.js b/addons/web/static/src/js/libs/popper.js new file mode 100644 index 00000000000..e94cf40c5b5 --- /dev/null +++ b/addons/web/static/src/js/libs/popper.js @@ -0,0 +1,2 @@ +/** @odoo-module **/ +Popper.Defaults.modifiers.preventOverflow.priority = ['right', 'left', 'bottom', 'top']; diff --git a/addons/web/views/webclient_templates.xml b/addons/web/views/webclient_templates.xml index dec1da40b4e..3f83e9616b1 100644 --- a/addons/web/views/webclient_templates.xml +++ b/addons/web/views/webclient_templates.xml @@ -129,6 +129,7 @@ + diff --git a/addons/website_forum/static/src/js/website_forum.js b/addons/website_forum/static/src/js/website_forum.js index fe3403482bf..c20b65d4b1a 100644 --- a/addons/website_forum/static/src/js/website_forum.js +++ b/addons/website_forum/static/src/js/website_forum.js @@ -167,7 +167,7 @@ publicWidget.registry.websiteForum = publicWidget.Widget.extend({ offset: 10, animation: false, html: true, - }); + }).popover('hide').data('bs.popover').tip.classList.add('o_wforum_bio_popover_container'); }); this.$('#post_reply').on('shown.bs.collapse', function (e) { diff --git a/addons/website_forum/static/src/scss/website_forum.scss b/addons/website_forum/static/src/scss/website_forum.scss index 1ca07320d02..c9539b42c02 100644 --- a/addons/website_forum/static/src/scss/website_forum.scss +++ b/addons/website_forum/static/src/scss/website_forum.scss @@ -253,6 +253,10 @@ img.o_forum_avatar_big { margin-bottom: $spacer; } +.popover.o_wforum_bio_popover_container { + max-width: 552px; +} + .o_wforum_forum_card_bg { background-image: linear-gradient(99deg, theme-color('secondary') 10%, darken(theme-color('secondary'), 10%) 90%);