From 568f59eefb104047b8ef063f273fe238075d6407 Mon Sep 17 00:00:00 2001 From: Faton Ramadani Date: Thu, 13 Apr 2023 09:28:18 +0200 Subject: [PATCH] feat(frontend): Remove gap when button label is empty (#1402) --- .../lib/components/apps/components/buttons/AppButton.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/apps/components/buttons/AppButton.svelte b/frontend/src/lib/components/apps/components/buttons/AppButton.svelte index 007432bd82..48eb6462ad 100644 --- a/frontend/src/lib/components/apps/components/buttons/AppButton.svelte +++ b/frontend/src/lib/components/apps/components/buttons/AppButton.svelte @@ -142,7 +142,9 @@ {#if resolvedConfig.beforeIcon && beforeIconComponent} {/if} -
{resolvedConfig.label}
+ {#if resolvedConfig.label && resolvedConfig.label?.length > 0} +
{resolvedConfig.label}
+ {/if} {#if resolvedConfig.afterIcon && afterIconComponent} {/if}