🐛 Icons align to the left in responsive mobile menu

This commit is contained in:
Nuno Coração 2022-11-19 23:33:24 +00:00
parent 165ee8c230
commit 2e097b8ec5
2 changed files with 2 additions and 2 deletions

View file

@ -109,7 +109,7 @@
<li class="mb-1"> <li class="mb-1">
<a {{ if or (strings.HasPrefix .URL "http:") (strings.HasPrefix .URL "https:") }} target="_blank"{{ end }} class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2" <a {{ if or (strings.HasPrefix .URL "http:") (strings.HasPrefix .URL "https:") }} target="_blank"{{ end }} class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
href="{{ .URL }}" title="{{ .Title }}"> href="{{ .URL }}" title="{{ .Title }}">
{{ partial "icon.html" .Pre }} <span class="inline-block align-text-bottom">{{ partial "icon.html" .Pre }}</span>
{{ if and .Pre .Name }} &nbsp; {{ end }} {{ if and .Pre .Name }} &nbsp; {{ end }}
{{ .Name | markdownify | emojify }} {{ .Name | markdownify | emojify }}
</a> </a>

View file

@ -121,7 +121,7 @@
target="_blank" {{ end }} target="_blank" {{ end }}
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2" class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
href="{{ .URL }}" title="{{ .Title }}"> href="{{ .URL }}" title="{{ .Title }}">
{{ partial "icon.html" .Pre }} <span class="inline-block align-text-bottom">{{ partial "icon.html" .Pre }}</span>
{{ if and .Pre .Name }} &nbsp; {{ end }} {{ if and .Pre .Name }} &nbsp; {{ end }}
{{ .Name | markdownify | emojify }} {{ .Name | markdownify | emojify }}
</a> </a>