From 6f45ac4479b501d528993fb64377200541444f79 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Mon, 23 Jun 2014 10:18:58 -0700 Subject: [PATCH] Fix rendering of centered caption-less images These were not actually centered before. Setting the display mode to table as for captioned thumbs fixes this issue. Bug: 51245 Change-Id: I18e0c173109a2184f9785f7f2a390a4582c7a881 --- resources/src/mediawiki.skinning/content.parsoid.less | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/src/mediawiki.skinning/content.parsoid.less b/resources/src/mediawiki.skinning/content.parsoid.less index af18eeaf93..775b2490ec 100644 --- a/resources/src/mediawiki.skinning/content.parsoid.less +++ b/resources/src/mediawiki.skinning/content.parsoid.less @@ -66,6 +66,7 @@ figure[typeof*='mw:Image'] { &.mw-halign-center { margin: 0 auto .5em auto; + display: table; clear: none; float: none; } -- 2.20.1