From 393928a280fcf0c56b7c1c5bc5e570ac533e2d5c Mon Sep 17 00:00:00 2001 From: Jon Robson Date: Mon, 27 Jun 2022 14:55:19 -0700 Subject: [PATCH] Fix table of contents when sidebar is open Bug: T309807 Change-Id: If370246d13984981f4c3477fda2b2dce45337d91 --- resources/skins.vector.styles/layouts/screen.less | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/skins.vector.styles/layouts/screen.less b/resources/skins.vector.styles/layouts/screen.less index 528fbb94..25d503db 100644 --- a/resources/skins.vector.styles/layouts/screen.less +++ b/resources/skins.vector.styles/layouts/screen.less @@ -203,6 +203,9 @@ body { // ensuring the TOC is 1.5em (24px) from the top of the viewport // unless .mw-sticky-header-element overrides it. top: ~'calc( 1.5em - @{top-margin-sidebar-toc_title_inline} )'; + @{selector-workspace-container-sidebar-open} & { + top: 0; + } .vector-layout-legacy & { clear: both;