diff --git a/assets/javascripts/views/content/settings_page.coffee b/assets/javascripts/views/content/settings_page.coffee index d1d3d0db..508beb3b 100644 --- a/assets/javascripts/views/content/settings_page.coffee +++ b/assets/javascripts/views/content/settings_page.coffee @@ -32,7 +32,7 @@ class app.views.SettingsPage extends app.View return toggleLayout: (layout, enable) -> - app.el.classList[if enable then 'add' else 'remove'](layout) unless layout is SIDEBAR_HIDDEN_LAYOUT + document.body.classList[if enable then 'add' else 'remove'](layout) unless layout is SIDEBAR_HIDDEN_LAYOUT app.settings.setLayout(layout, enable) app.appCache?.updateInBackground() return diff --git a/assets/javascripts/views/layout/settings.coffee b/assets/javascripts/views/layout/settings.coffee index cdc790c6..6bf02479 100644 --- a/assets/javascripts/views/layout/settings.coffee +++ b/assets/javascripts/views/layout/settings.coffee @@ -22,7 +22,7 @@ class app.views.Settings extends app.View activate: -> if super @render() - app.el.classList.remove(SIDEBAR_HIDDEN_LAYOUT) + document.body.classList.remove(SIDEBAR_HIDDEN_LAYOUT) app.appCache?.on 'progress', @onAppCacheProgress return @@ -30,7 +30,7 @@ class app.views.Settings extends app.View if super @resetClass() @docPicker.detach() - app.el.classList.add(SIDEBAR_HIDDEN_LAYOUT) if app.settings.hasLayout(SIDEBAR_HIDDEN_LAYOUT) + document.body.classList.add(SIDEBAR_HIDDEN_LAYOUT) if app.settings.hasLayout(SIDEBAR_HIDDEN_LAYOUT) app.appCache?.off 'progress', @onAppCacheProgress return diff --git a/assets/stylesheets/components/_app.scss b/assets/stylesheets/components/_app.scss index 1d3165a7..0debd669 100644 --- a/assets/stylesheets/components/_app.scss +++ b/assets/stylesheets/components/_app.scss @@ -11,7 +11,7 @@ ._booting > & { opacity: 0; } ._noscript > & { display: none; } - &._max-width { + ._max-width & { margin: 0 auto; max-width: $maxWidth; box-shadow: 1px 0 $headerBorder, -1px 0 $headerBorder; diff --git a/views/app.erb b/views/app.erb index 18d92f12..411f1e5f 100644 --- a/views/app.erb +++ b/views/app.erb @@ -1,4 +1,4 @@ -
" role="application"> +