From 84dae0a19bfc46205091b2b0677308b0ac6c0caa Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Sun, 7 Apr 2024 18:30:36 +0200 Subject: [PATCH] fix(post mobile): clearfix for floating media --- src/components/post/post.module.css | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/post/post.module.css b/src/components/post/post.module.css index e055e393..be105169 100644 --- a/src/components/post/post.module.css +++ b/src/components/post/post.module.css @@ -26,7 +26,7 @@ transform: translateY(-1px); } -/* clearfix to the container of the floatied elements to contain them */ +/* clearfix to contain float elements */ .postDesktop::after { content: ""; display: table; @@ -188,6 +188,13 @@ text-decoration: var(--post-content-link-text-decoration-hover); } +/* clearfix to contain float elements */ +.postMobile .postOp::after { + content: ""; + display: table; + clear: both; +} + .postMobile hr { padding-bottom: 30px; } @@ -332,7 +339,7 @@ border-bottom: var(--post-mobile-border-bottom); } -/* clearfix to the container of the floatied elements to contain them */ +/* clearfix to contain float elements */ .replyMobile .replyContainer::after { content: ""; display: table;