From 4d274d8073357563d46cda077db856aab747b2ec Mon Sep 17 00:00:00 2001 From: Kumi Date: Sun, 18 Aug 2024 11:12:23 +0200 Subject: [PATCH] fix(css): adjust float and clear for alignment classes Updated CSS rules to properly handle alignment by adding `clear: left` for elements floating left and `clear: right` for elements floating right. Also corrected `.mw-default-size` to float right instead of left. These changes aim to improve layout consistency and avoid potential overlapping issues. --- src/wikimore/static/css/style.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wikimore/static/css/style.css b/src/wikimore/static/css/style.css index e390457..c34b751 100644 --- a/src/wikimore/static/css/style.css +++ b/src/wikimore/static/css/style.css @@ -329,6 +329,7 @@ figcaption, .mw-halign-left, .tleft { float: left; + clear: left; margin-right: 1em; } @@ -342,13 +343,14 @@ figcaption, .mw-halign-right, .tright { float: right; + clear: right; margin-left: 1em; } .mw-default-size { width: fit-content; - float: left; - clear: left; + float: right; + clear: right; max-width: 300px; }