From d5783ccf3bf8a6a6265745903fd8fb6244233d85 Mon Sep 17 00:00:00 2001 From: Isarra Date: Sun, 13 Dec 2020 21:05:06 +0000 Subject: [PATCH] Limit image overflow limits to not tables Avoid breaking legacy templates. What other templates were affected, though? Was it just tables? Hopefully it is... Bug: T181321 Bug: T269970 Change-Id: I2ce7d7b4344cc1b056feb99e47bd7f99959df454 --- resources/screen-common.less | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/resources/screen-common.less b/resources/screen-common.less index 10f6a8c..4763588 100644 --- a/resources/screen-common.less +++ b/resources/screen-common.less @@ -557,6 +557,16 @@ pre, } } +a > img, +.floatnone > img { + // Hopefully these are only templates or something sane to begin with + // See: T269970 + .mw-body .mw-parser-output table & { + height: unset !important; + max-width: unset !important; + } +} + #siteSub { margin: -0.5em 0 0.5em 0; font-style: italic;