From f92d3ce79b4188dc6fe2f470840509cc0a1227a0 Mon Sep 17 00:00:00 2001 From: Kumi Date: Sun, 18 Aug 2024 08:55:21 +0200 Subject: [PATCH] feat(css): Add class for default size adjustment Added `.mw-default-size` CSS class with `width: fit-content` to ensure elements with this class adjust width based on their content. This enhancement improves the layout for dynamically sized components, ensuring they are appropriately sized without overflow issues. --- src/wikimore/static/css/style.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wikimore/static/css/style.css b/src/wikimore/static/css/style.css index 819f321..b2aaddc 100644 --- a/src/wikimore/static/css/style.css +++ b/src/wikimore/static/css/style.css @@ -427,6 +427,10 @@ figcaption, margin-left: 1em; } +.mw-default-size { + width: fit-content; +} + /* Reference styling */ .reflist-lower-alpha .references { list-style-type: lower-alpha;