Fix regression from #8439 (#8455)

Missing no-reduce-motion/reduce-motion body class
lolsob-rspec
Eugen Rochko 2018-08-26 14:29:58 +02:00 committed by GitHub
parent ec9e959ef9
commit f27c511e1c
1 changed files with 1 additions and 1 deletions

View 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