From 7508c55a7badbcfa12920bd6f38b7ab9bbfbf55a Mon Sep 17 00:00:00 2001 From: Kris Date: Mon, 27 Jul 2020 18:49:57 -0400 Subject: [PATCH] Remove extra whitespace between d-button icon and text --- .../discourse/app/templates/components/d-button.hbs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/discourse/app/templates/components/d-button.hbs b/app/assets/javascripts/discourse/app/templates/components/d-button.hbs index 10d12b4d836..5771625740a 100644 --- a/app/assets/javascripts/discourse/app/templates/components/d-button.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/d-button.hbs @@ -1,17 +1,17 @@ {{#if icon}} {{#if isLoading}} - {{d-icon "spinner" class="loading-icon"}} + {{~d-icon "spinner" class="loading-icon"~}} {{else}} - {{d-icon icon}} + {{~d-icon icon~}} {{/if}} {{else}} {{#if isLoading}} - {{d-icon "spinner" class="loading-icon"}} + {{~d-icon "spinner" class="loading-icon"~}} {{/if}} {{/if}} -{{#if computedLabel}} +{{~#if computedLabel~}} {{html-safe computedLabel}}{{#if ellipsis}}…{{/if}} -{{/if}} +{{~/if~}} {{yield}}