Content deleted Content added
m Archiving 1 discussion(s) from Template talk:WPBannerMeta) (bot |
m Archiving 1 discussion(s) from Template talk:WPBannerMeta) (bot |
||
Line 606:
</pre>
:::{{ping|User:WOSlinker}} thank you! --[[User:Funandtrvl|Funandtrvl]] ([[User talk:Funandtrvl|talk]]) 05:49, 20 February 2022 (UTC)
== Unreasonably massive class/importance boxes on certain screen sizes ==
When visiting pages such as [[Talk:France national football team]] or [[Talk:Feldwebel]] on Firefox using the ''Timeless'' WP skin on desktop, with a window of width less than 830px, the colored class/importance boxes (e.g. "Start", "B" and "Mid") in templates that are built on top of this template are absolutely massive, (e.g. 681px x 188 px), while the text column to their right is tiny (e.g. 82px x 182 px). I think these widths should be pretty much reversed. The problem appears to be caused by the CSS class {{code|.mw-body-content td.mbox-text}} of the right (text) column having {{code|display: block}} set and disappears when the attribute is removed.
If there's a better place to report this (e.g. if this should be viewed as a problem with the skin rather than with this template), thanks in advance for pointing me towards a better place to report this. -[[User:Ljleppan|''Ljleppan'']] ([[User talk:Ljleppan|talk]]) 08:33, 1 April 2022 (UTC)
:Removing <code>[https://en.wikipedia.org/w/index.php?title=Template:WPBannerMeta/core/sandbox&diff=prev&oldid=1080444420 class="mbox-image"]</code> in the sandbox version seemed to help. See a test [https://en.wikipedia.org/w/index.php?title=User:WOSlinker/bannertest&useskin=timeless here]. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 09:47, 1 April 2022 (UTC)
::This would also seems to fix the issue on my end. In this changeset, the operative CSS attribute being removed appears to be {{code|float: left;}} in {{code|.mw-body-content td.mbox-image.mbox-image}}. The downside would then naturally be that the text won't wrap around the image any more, which is probably fine in most cases but might look weird for very long texts. Meanwhile, removing {{code|class{{=}}"mbox-text"}} from the {{code|<td>}} elements following the class/importance {{code|<td>}} elements doesn't seem to result in any adverse changes at least on my computer. [[User:Ljleppan|''Ljleppan'']] ([[User talk:Ljleppan|talk]]) 10:32, 1 April 2022 (UTC)
:This was reported [[Template_talk:WPBannerMeta/Archive_11#Coloured_blocks_may_be_too_large|a while ago]]. Regardless, removing <code>mbox-</code> would be overall a negative for other use cases. If we need to adjust the actual CSS on that element, we can work on that.
:At some point this template won't use a table for layout so we'll be able to sort these things out a bit easier. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 19:35, 4 June 2022 (UTC)
|