button: fix whitespacing in FF #737

This commit is contained in:
Sören Weber 2023-11-29 10:04:02 +01:00
parent 9145cda1ed
commit 13822f44a2
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -49,19 +49,17 @@
<span class="btn cstyle {{ $style }}"{{ if $color }} style="--VARIABLE-BOX-color: {{ $color }};"{{ end }}> <span class="btn cstyle {{ $style }}"{{ if $color }} style="--VARIABLE-BOX-color: {{ $color }};"{{ end }}>
{{- if $isButton }} {{- if $isButton }}
<button{{ if $href }} onclick="{{ $href | safeJS }}"{{ end }}{{ if gt (len $type) 0 }} type="{{ $type }}"{{ end }}> <button{{ if $href }} onclick="{{ $href | safeJS }}"{{ end }}{{ if gt (len $type) 0 }} type="{{ $type }}"{{ end }}>
{{- else }} {{- else -}}
<a{{ if $href }} href="{{ $href }}"{{ if gt (len $target) 0 }} target="{{ $target }}"{{ end }}{{ end }}> <a{{ if $href }} href="{{ $href }}"{{ if gt (len $target) 0 }} target="{{ $target }}"{{ end }}{{ end }}>
{{- end }} {{- end }}
{{- if and $icon (eq $iconposition "left") }} {{- if and $icon (eq $iconposition "left") }}<i class="{{ $icon }}"></i>{{ end }}
<i class="{{ $icon }}"></i> {{- if and $icon (eq $iconposition "left") $title }} {{ end }}
{{- end }} {{- $title | safeHTML }}
{{ $title | safeHTML }} {{- if and $icon (eq $iconposition "right") $title }} {{ end }}
{{- if and $icon (eq $iconposition "right") }} {{- if and $icon (eq $iconposition "right") }}<i class="{{ $icon }}"></i>{{ end }}
<i class="{{ $icon }}"></i> {{- if $isButton -}}
{{- end }}
{{- if $isButton }}
</button> </button>
{{- else }} {{- else -}}
</a> </a>
{{- end }} {{- end }}
</span> </span>