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.
This commit is contained in:
Kumi 2024-08-18 11:12:23 +02:00
parent f9add6305b
commit 4d274d8073
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -329,6 +329,7 @@ figcaption,
.mw-halign-left, .mw-halign-left,
.tleft { .tleft {
float: left; float: left;
clear: left;
margin-right: 1em; margin-right: 1em;
} }
@ -342,13 +343,14 @@ figcaption,
.mw-halign-right, .mw-halign-right,
.tright { .tright {
float: right; float: right;
clear: right;
margin-left: 1em; margin-left: 1em;
} }
.mw-default-size { .mw-default-size {
width: fit-content; width: fit-content;
float: left; float: right;
clear: left; clear: right;
max-width: 300px; max-width: 300px;
} }