2
0

Migrate fontawesome->material in more views (#31360)

This commit is contained in:
Matt Jankowski
2024-08-20 07:52:45 -04:00
committed by GitHub
parent 3be1b1eaae
commit fa2e7b1708
25 changed files with 71 additions and 36 deletions

View File

@@ -117,7 +117,8 @@ module ApplicationHelper
inline_svg_tag(
"400-24px/#{icon}.svg",
class: ['icon', "material-#{icon}"].concat(attributes[:class].to_s.split),
role: :img
role: :img,
data: attributes[:data]
)
end

View File

@@ -26,11 +26,11 @@ module SettingsHelper
device = session.detection.device
if device.mobile?
'mobile'
'smartphone'
elsif device.tablet?
'tablet'
else
'desktop'
'desktop_mac'
end
end