From 519dea48f88a8ae483d3139c86a8d6adfc867f9e Mon Sep 17 00:00:00 2001 From: Ali Sherief Date: Wed, 21 Sep 2022 12:16:44 +0000 Subject: [PATCH 1/2] Fix document not scrolling in iOS (all browsers) This patches a bug where users cannot scroll a document on iOS, because iOS does not allow iframes to be scrolled. See https://davidwalsh.name/scroll-iframes-ios for details. --- src/static/skins/colibris/src/layout.css | 15 +++++++++++++++ src/templates/pad.html | 4 +++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/static/skins/colibris/src/layout.css b/src/static/skins/colibris/src/layout.css index 1ec3886c8f5..4ce234a4729 100644 --- a/src/static/skins/colibris/src/layout.css +++ b/src/static/skins/colibris/src/layout.css @@ -1,3 +1,18 @@ +.scroll-wrapper { + display: flex; + min-width: 100vw; +} + +@supports (-webkit-touch-callout: none) { + .scroll-wrapper { + -webkit-overflow-scrolling: touch; + overflow-y: scroll; + } + + .scroll-wrapper iframe {} + +} + #outerdocbody { margin: 0 auto; padding-top: 20px; diff --git a/src/templates/pad.html b/src/templates/pad.html index c0c56bf24fe..0f85e022ce2 100644 --- a/src/templates/pad.html +++ b/src/templates/pad.html @@ -80,7 +80,9 @@ <% e.begin_block("afterEditbar"); %><% e.end_block(); %> -
+
+
+
<% e.begin_block("editorContainerBox"); %> From ac3bbc20048ba1c71e50aca914d6b48e197d2215 Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 27 Jun 2023 13:54:02 +0100 Subject: [PATCH 2/2] trigger GitHub actions