2
0

Provide option to force use of system scrollbar styling (#32117)

This commit is contained in:
Michael Stanclift
2024-12-03 02:38:23 -06:00
committed by GitHub
parent be43b01eb1
commit 04b7046be1
7 changed files with 38 additions and 25 deletions

View File

@@ -147,6 +147,7 @@ module ApplicationHelper
output << content_for(:body_classes)
output << "theme-#{current_theme.parameterize}"
output << 'system-font' if current_account&.user&.setting_system_font_ui
output << 'custom-scrollbars' unless current_account&.user&.setting_system_scrollbars_ui
output << (current_account&.user&.setting_reduce_motion ? 'reduce-motion' : 'no-reduce-motion')
output << 'rtl' if locale_direction == 'rtl'
output.compact_blank.join(' ')