From 5233654fd22252d4bb94d186c9a31f85dc8960a5 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 6 Mar 2020 07:34:46 +0800 Subject: [PATCH] FIX: ensures wide equations are responsive on Safari This commit ensures that wide equations can be scrolled on Safari. It previously failed because Safari doesn't not support the two value overflow shorthand. --- assets/stylesheets/common/discourse-math.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/stylesheets/common/discourse-math.scss b/assets/stylesheets/common/discourse-math.scss index 1a9a0e2..09dee1d 100644 --- a/assets/stylesheets/common/discourse-math.scss +++ b/assets/stylesheets/common/discourse-math.scss @@ -24,7 +24,7 @@ // special handeling for katex .katex-html { display: block; - overflow: auto hidden; + overflow-x: auto; max-width: 100%; padding: 0.25em 0.5em; box-sizing: border-box;