From a8ddd644e4db73aac418b46713fa6d7a7e2f26db Mon Sep 17 00:00:00 2001 From: Martin Schoeler Date: Wed, 5 Sep 2018 14:42:22 -0300 Subject: [PATCH] Fix some mobile view bugs (#904) --- _config.yml | 2 +- _sass/layout.scss | 9 +++++++++ public/js/responsiveControl.js | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index c40716aee0..d7ac6e7246 100644 --- a/_config.yml +++ b/_config.yml @@ -5,7 +5,7 @@ description: Rocket.Chat user, admin, API, integration, plugin and contributing url: https://rocket.chat/docs # bump if alterting styles or js -version: 28 +version: 29 defaults: - scope: diff --git a/_sass/layout.scss b/_sass/layout.scss index 078c0c2c59..6c8fae0c1c 100644 --- a/_sass/layout.scss +++ b/_sass/layout.scss @@ -670,6 +670,10 @@ td > code { border: none; } + .article-toc-wrapper{ + display: none; + } + .home-hero{ background-size: 250% auto; background-position: center bottom; @@ -694,6 +698,11 @@ td > code { width: 100%; } + .content .wrapper{ + width: 95%; + margin: 0 auto; + } + .mobile-search { margin-bottom: 2em; display: flex; diff --git a/public/js/responsiveControl.js b/public/js/responsiveControl.js index e69202b3cf..5aa65386f0 100644 --- a/public/js/responsiveControl.js +++ b/public/js/responsiveControl.js @@ -1,7 +1,7 @@ function moveToC(){ var viewportWidth = window.innerWidth; - if (viewportWidth < 1000) { + if (viewportWidth < 1200) { $('.toc').appendTo($('.toc-sidebar')); } else { $('.ui.sidebar').sidebar('hide'); @@ -11,7 +11,7 @@ function moveToC(){ function moveSearch(){ var viewportWidth = window.innerWidth; - if (viewportWidth < 1000) { + if (viewportWidth < 1200) { $('.search.docs').appendTo($('.mobile-search')); } else { $('.ui.sidebar').sidebar('hide');