Skip to content

Commit

Permalink
Fix some mobile view bugs (RocketChat#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchoeler authored Sep 5, 2018
1 parent bd2755e commit a8ddd64
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 9 additions & 0 deletions _sass/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,10 @@ td > code {
border: none;
}

.article-toc-wrapper{
display: none;
}

.home-hero{
background-size: 250% auto;
background-position: center bottom;
Expand All @@ -694,6 +698,11 @@ td > code {
width: 100%;
}

.content .wrapper{
width: 95%;
margin: 0 auto;
}

.mobile-search {
margin-bottom: 2em;
display: flex;
Expand Down
4 changes: 2 additions & 2 deletions public/js/responsiveControl.js
Original file line number Diff line number Diff line change
@@ -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');
Expand All @@ -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');
Expand Down

0 comments on commit a8ddd64

Please sign in to comment.