about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorNolan Lawson <nolan@nolanlawson.com>2017-10-16 12:08:01 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-10-16 21:08:01 +0200
commit8980aa804f2552fbb10f10c7c9395c0bbfc10621 (patch)
treef8cbb003870fb790c7584207e088588db48a66d1 /app/views
parent34118169ace56b31d6d4b26638fb7375171b7796 (diff)
Fix reduced motion breaking public galleries (#5423)
Diffstat (limited to 'app/views')
-rwxr-xr-xapp/views/layouts/application.html.haml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
index ee995c987..831858bcf 100755
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -27,6 +27,7 @@
     = yield :header_tags
 
   - body_classes ||= @body_classes || ''
+  - body_classes += ' reduce-motion' if current_account&.user&.setting_reduce_motion
   - body_classes += ' system-font' if current_account&.user&.setting_system_font_ui
 
   %body{ class: add_rtl_body_class(body_classes) }