mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-25 19:01:37 +01:00
Fix spacing between icons and labels in settings/admin interface (#31728)
This commit is contained in:
parent
97bb8df1c1
commit
ae363f0555
1 changed files with 10 additions and 5 deletions
|
@ -106,11 +106,16 @@ module ApplicationHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def material_symbol(icon, attributes = {})
|
def material_symbol(icon, attributes = {})
|
||||||
inline_svg_tag(
|
safe_join(
|
||||||
"400-24px/#{icon}.svg",
|
[
|
||||||
class: ['icon', "material-#{icon}"].concat(attributes[:class].to_s.split),
|
inline_svg_tag(
|
||||||
role: :img,
|
"400-24px/#{icon}.svg",
|
||||||
data: attributes[:data]
|
class: ['icon', "material-#{icon}"].concat(attributes[:class].to_s.split),
|
||||||
|
role: :img,
|
||||||
|
data: attributes[:data]
|
||||||
|
),
|
||||||
|
' ',
|
||||||
|
]
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue