Fix spacing between icons and labels in settings/admin interface (#31728)

pull/2834/head
Claire 2024-09-03 16:43:34 +02:00 committed by GitHub
parent 97bb8df1c1
commit ae363f0555
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 5 deletions

View File

@ -106,11 +106,16 @@ module ApplicationHelper
end
def material_symbol(icon, attributes = {})
safe_join(
[
inline_svg_tag(
"400-24px/#{icon}.svg",
class: ['icon', "material-#{icon}"].concat(attributes[:class].to_s.split),
role: :img,
data: attributes[:data]
),
' ',
]
)
end