From 700c82ec6abe54de6af05064ceeac75117d406d6 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Sat, 19 May 2018 17:14:35 +0200 Subject: [PATCH] ToC: Use table layout for the toc Table layout is much better in combinging wrapping, using as much space as available and floating content at the same time. This is similar to how we do this for all our skins Change-Id: I23408d1aa6773af05f2ee197356a9b04feb524f0 --- resources/screen-common.less | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/screen-common.less b/resources/screen-common.less index f43167d..1529bf7 100644 --- a/resources/screen-common.less +++ b/resources/screen-common.less @@ -446,10 +446,9 @@ ul { /* Tables of contents */ ul#filetoc, -#toc, .toc, .mw-warning { - display: inline-block; + display: table; .box; padding: 1.25em 1.75em; margin: 1em 0;