Set "admin" body class from admin
nested layout (#31269)
This commit is contained in:
parent
fd7fc7bdc3
commit
a9d0b48b65
14 changed files with 13 additions and 56 deletions
|
@ -159,6 +159,7 @@ module ApplicationHelper
|
|||
|
||||
def body_classes
|
||||
output = body_class_string.split
|
||||
output << content_for(:body_classes)
|
||||
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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue