1
0
Fork 0
forked from fedi/mastodon

Fix regression from ()

Missing no-reduce-motion/reduce-motion body class
This commit is contained in:
Eugen Rochko 2018-08-26 14:29:58 +02:00 committed by GitHub
parent f37fafe30b
commit 6c9be61f57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ module ApplicationHelper
output = (@body_classes || '').split(' ') output = (@body_classes || '').split(' ')
output << "theme-#{current_theme.parameterize}" output << "theme-#{current_theme.parameterize}"
output << 'system-font' if current_account&.user&.setting_system_font_ui 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 << 'rtl' if locale_direction == 'rtl'
output.reject(&:blank?).join(' ') output.reject(&:blank?).join(' ')
end end