]> cat aescling's git repositories - mastodon.git/commitdiff
Fix regression from #8439 (#8455)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 26 Aug 2018 12:29:58 +0000 (14:29 +0200)
committerGitHub <noreply@github.com>
Sun, 26 Aug 2018 12:29:58 +0000 (14:29 +0200)
Missing no-reduce-motion/reduce-motion body class

app/helpers/application_helper.rb

index 9eb0429387b2d038da17bb4516fb12017a6ffb99..758f864d780334a1e8b4ad56230309fdf33a8952 100644 (file)
@@ -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