From aaf6e9d693b8a460c40b2b7832eb05d7cd3c82fb Mon Sep 17 00:00:00 2001 From: Alexander Petric Date: Thu, 26 Jun 2025 17:59:03 -0400 Subject: [PATCH] center icon if no label present (#6080) --- .../lib/components/apps/components/buttons/AppButton.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/apps/components/buttons/AppButton.svelte b/frontend/src/lib/components/apps/components/buttons/AppButton.svelte index 8ec9475f30..905481f4bd 100644 --- a/frontend/src/lib/components/apps/components/buttons/AppButton.svelte +++ b/frontend/src/lib/components/apps/components/buttons/AppButton.svelte @@ -275,7 +275,7 @@ > {#if resolvedConfig.beforeIcon} {#key resolvedConfig.beforeIcon} -
+
0 ? "min-w-4" : ""} bind:this={beforeIconComponent}>
{/key} {/if} {#if resolvedConfig.label?.toString() && resolvedConfig.label?.toString()?.length > 0} @@ -283,7 +283,7 @@ {/if} {#if resolvedConfig.afterIcon} {#key resolvedConfig.afterIcon} -
+
0 ? "min-w-4" : ""} bind:this={afterIconComponent}>
{/key} {/if}