summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYounn Olivier <yol@odoo.com>2021-05-03 09:44:40 +0000
committerYounn Olivier <yol@odoo.com>2021-05-28 13:22:39 +0000
commit920c603f4f5b70384f5d25f4a1c484e4ebe373c9 (patch)
treee402e608beea5519230b2bd85ff622054cd37076
parente6c69a8cf00cd858a45ebf321a190666322c0897 (diff)
[FIX] website_forum: fix image display in a forum post
The container size of a forum post was not correct when an image was displayed with right or left alignment. The css property clear was added at the end of the posts so that floating elements do not float over the next section. task-2469516 Part of https://github.com/odoo/odoo/pull/70235 X-original-commit: 0c58901cbef8b1d1808f673b7b34d1de93c2fd6d
-rw-r--r--addons/website_forum/static/src/scss/website_forum.scss6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/website_forum/static/src/scss/website_forum.scss b/addons/website_forum/static/src/scss/website_forum.scss
index c9539b42c02..861349a8d9c 100644
--- a/addons/website_forum/static/src/scss/website_forum.scss
+++ b/addons/website_forum/static/src/scss/website_forum.scss
@@ -66,6 +66,12 @@ $bronze: #eea91e;
p {
margin-bottom: 0.5rem;
}
+
+ &::after {
+ content: "";
+ display: table;
+ clear: both;
+ }
}
textarea.o_wysiwyg_loader + .note-editor {