about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-08-26 14:29:58 +0200
committerGitHub <noreply@github.com>2018-08-26 14:29:58 +0200
commit6c9be61f572f79cfe6ceb0599a05c1dcdf8d490c (patch)
tree71083d386c8a54311c1b6b757e7e9041ed09d468 /app/helpers
parentf37fafe30b5f6ff85ebf87fb622293a855877ee1 (diff)
Fix regression from #8439 (#8455)
Missing no-reduce-motion/reduce-motion body class
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 9eb042938..758f864d7 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -77,7 +77,7 @@ module ApplicationHelper
     output = (@body_classes || '').split(' ')
     output << "theme-#{current_theme.parameterize}"
     output << 'system-font' if current_account&.user&.setting_system_font_ui
-    output << current_account&.user&.setting_reduce_motion ? 'reduce-motion' : 'no-reduce-motion'
+    output << (current_account&.user&.setting_reduce_motion ? 'reduce-motion' : 'no-reduce-motion')
     output << 'rtl' if locale_direction == 'rtl'
     output.reject(&:blank?).join(' ')
   end