about summary refs log tree commit diff
path: root/app/views/layouts/application.html.haml
diff options
context:
space:
mode:
authorbeatrix <beatrix.bitrot@gmail.com>2017-10-16 17:05:42 -0400
committerGitHub <noreply@github.com>2017-10-16 17:05:42 -0400
commit7364b26e4b57dcaa0712c63659fd6f5ff7782cf9 (patch)
tree2961b48a56490242ad19434ed5baac7bd5201f9d /app/views/layouts/application.html.haml
parent313ba202ef33be706ba921688997a6e59f84b473 (diff)
parent8980aa804f2552fbb10f10c7c9395c0bbfc10621 (diff)
Merge pull request #184 from tootsuite/master
Fix reduced motion breaking public galleries (#5423)
Diffstat (limited to 'app/views/layouts/application.html.haml')
-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 24b74c787..b1fd9ef40 100755
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -29,6 +29,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) }