🛠 fix: icon padding in menus

This commit is contained in:
Tomy Hsieh
2023-06-01 19:09:31 +08:00
parent ebfe161c9d
commit b67f0a7c73
5 changed files with 46 additions and 46 deletions
+5 -5
View File
@@ -1,6 +1,6 @@
{{ $icon := resources.Get (print "icons/" . ".svg") }}
{{ if $icon }}
<span class="relative inline-block align-text-bottom icon">
{{ $icon.Content | safeHTML }}
{{- $icon := resources.Get (print "icons/" . ".svg") -}}
{{- if $icon -}}
<span class="relative inline-block align-text-bottom px-1 icon">
{{- $icon.Content | safeHTML -}}
</span>
{{ end }}
{{- end -}}