From a01fced79ade78016c847e3c6609ae0ca34252f0 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Sun, 7 May 2023 18:57:24 +0100 Subject: [PATCH 1/3] fix: discussion page showing horizontal scroll on iOS Signed-off-by: Sami Mazouz --- framework/core/less/common/scaffolding.less | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/framework/core/less/common/scaffolding.less b/framework/core/less/common/scaffolding.less index 6979f76bd8..b7e2672954 100644 --- a/framework/core/less/common/scaffolding.less +++ b/framework/core/less/common/scaffolding.less @@ -6,6 +6,10 @@ } } +html { + overflow-x: hidden; +} + body { background: var(--body-bg); color: var(--text-color); From 4ce38e4500cac5ba0373dcea0a1287a43d1eb6d4 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Sun, 7 May 2023 23:21:28 +0100 Subject: [PATCH 2/3] Update framework/core/less/common/scaffolding.less --- framework/core/less/common/scaffolding.less | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/framework/core/less/common/scaffolding.less b/framework/core/less/common/scaffolding.less index b7e2672954..81d692f7be 100644 --- a/framework/core/less/common/scaffolding.less +++ b/framework/core/less/common/scaffolding.less @@ -6,8 +6,10 @@ } } -html { - overflow-x: hidden; +@media @phone { + html { + overflow-x: hidden; + } } body { From 512ad852fcc5f4e5dc8734847e22849d96930ed0 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Sun, 7 May 2023 23:42:36 +0100 Subject: [PATCH 3/3] Update framework/core/less/common/scaffolding.less Co-authored-by: David Wheatley --- framework/core/less/common/scaffolding.less | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/core/less/common/scaffolding.less b/framework/core/less/common/scaffolding.less index 81d692f7be..175f8f22ab 100644 --- a/framework/core/less/common/scaffolding.less +++ b/framework/core/less/common/scaffolding.less @@ -6,6 +6,7 @@ } } +// Fix to prevent horizontal scrolling bug on iOS @media @phone { html { overflow-x: hidden;