From 13822f44a23c95f391fe8690c9911a7d250bf636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Wed, 29 Nov 2023 10:04:02 +0100 Subject: [PATCH] button: fix whitespacing in FF #737 --- layouts/partials/shortcodes/button.html | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/layouts/partials/shortcodes/button.html b/layouts/partials/shortcodes/button.html index 7c35fef075..5115dafc7b 100644 --- a/layouts/partials/shortcodes/button.html +++ b/layouts/partials/shortcodes/button.html @@ -49,19 +49,17 @@ {{- if $isButton }} - {{- else }} + {{- else -}} {{- end }} - {{- if and $icon (eq $iconposition "left") }} - - {{- end }} - {{ $title | safeHTML }} - {{- if and $icon (eq $iconposition "right") }} - - {{- end }} - {{- if $isButton }} + {{- if and $icon (eq $iconposition "left") }}{{ end }} + {{- if and $icon (eq $iconposition "left") $title }} {{ end }} + {{- $title | safeHTML }} + {{- if and $icon (eq $iconposition "right") $title }} {{ end }} + {{- if and $icon (eq $iconposition "right") }}{{ end }} + {{- if $isButton -}} - {{- else }} + {{- else -}} {{- end }}