Skip to content

Commit

Permalink
[maud] Enable wider column only if advanced layout enabled
Browse files Browse the repository at this point in the history
* wider-column breaks single column mode

Signed-off-by: lindwurm <lindwurm.q@gmail.com>
  • Loading branch information
lindwurm committed Apr 19, 2022
1 parent 32cc8e3 commit 83f1bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Expand Up @@ -176,7 +176,7 @@ def body_classes
output << 'system-font' if current_account&.user&.setting_system_font_ui
output << (current_account&.user&.setting_reduce_motion ? 'reduce-motion' : 'no-reduce-motion')
output << 'bigger-publish' if current_account&.user&.setting_bigger_publish
output << 'wider-column' if current_account&.user&.setting_wider_column
output << 'wider-column' if (current_account&.user&.setting_advanced_layout && current_account&.user&.setting_wider_column)
output << 'rtl' if locale_direction == 'rtl'
output.reject(&:blank?).join(' ')
end
Expand Down

0 comments on commit 83f1bf1

Please sign in to comment.