From cd0931c951b50f9edc74dc004e9c74fc660a9e39 Mon Sep 17 00:00:00 2001 From: Brandon Istenes Date: Thu, 12 Jan 2017 04:09:36 +0300 Subject: [PATCH 1/4] UI improvements for mobile browsers --- www/pad/index.html | 1 + www/pad/inner.html | 1 + www/pad/main.js | 6 +++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/www/pad/index.html b/www/pad/index.html index 8437073af..7d4c3125a 100644 --- a/www/pad/index.html +++ b/www/pad/index.html @@ -3,6 +3,7 @@ CryptPad + + diff --git a/www/pad/main.js b/www/pad/main.js index f96cdcb28..510e86983 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -763,9 +763,13 @@ define([ var first = function () { Ckeditor = ifrw.CKEDITOR; - if (Ckeditor) { //andThen(Ckeditor); + // mobile configuration + Ckeditor.config.toolbarCanCollapse = true; + if (screen.height < 800) { + Ckeditor.config.toolbarStartupExpanded = false; + } second(Ckeditor); } else { console.log("Ckeditor was not defined. Trying again in %sms",interval); From 52d8d8db1d23f7ca884b2023db18187082a41f37 Mon Sep 17 00:00:00 2001 From: Brandon Istenes Date: Thu, 12 Jan 2017 05:02:34 +0300 Subject: [PATCH 2/4] Get rid of margins on mobile --- www/pad/inner.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/pad/inner.html b/www/pad/inner.html index ae91a2a90..5cdff9aa3 100644 --- a/www/pad/inner.html +++ b/www/pad/inner.html @@ -7,6 +7,9 @@