From dd5ff08c24d074c21ad27440c41821f2def7d4fa Mon Sep 17 00:00:00 2001 From: Winston Sung Date: Fri, 26 Apr 2024 15:49:38 +0800 Subject: [PATCH] Fix content width changing when switching tabs - 6 Fix content width changing when switching tabs in Special:Preferences - attempt 6. Caused by min() , max() . Bug: #40 Bug: #41 Bug: #42 Bug: #43 Change-Id: I1b3d150b8231244948ebd83f92e0f256cfb6f1ac --- resources/skin.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/skin.less b/resources/skin.less index 2208bda..ecc50d3 100644 --- a/resources/skin.less +++ b/resources/skin.less @@ -172,7 +172,7 @@ p { color: @text-color-body; @media screen and ( min-width: @width-breakpoint-tablet ) { - width: max( @width-breakpoint-tablet, ~"70%" ); + width: ~"max(" @width-breakpoint-tablet, ~"70% )"; max-width: 100%; } @@ -585,7 +585,7 @@ main { margin-top: 40px; @media screen and ( min-width: @width-breakpoint-tablet ) { - width: max( @width-breakpoint-tablet, ~"70%" ); + width: ~"max(" @width-breakpoint-tablet, ~"70% )"; margin: 10px auto 40px; } }