mirror of https://github.com/tootsuite/mastodon
Fix spacing between icons and labels in settings/admin interface (#31728)
parent
97bb8df1c1
commit
ae363f0555
|
@ -106,11 +106,16 @@ module ApplicationHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def material_symbol(icon, attributes = {})
|
def material_symbol(icon, attributes = {})
|
||||||
|
safe_join(
|
||||||
|
[
|
||||||
inline_svg_tag(
|
inline_svg_tag(
|
||||||
"400-24px/#{icon}.svg",
|
"400-24px/#{icon}.svg",
|
||||||
class: ['icon', "material-#{icon}"].concat(attributes[:class].to_s.split),
|
class: ['icon', "material-#{icon}"].concat(attributes[:class].to_s.split),
|
||||||
role: :img,
|
role: :img,
|
||||||
data: attributes[:data]
|
data: attributes[:data]
|
||||||
|
),
|
||||||
|
' ',
|
||||||
|
]
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue