From 14ab0bda54354960c627c3e9912e6f41026c3b58 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Tue, 11 Oct 2022 12:55:56 +0800
Subject: refactor: Add mt-1 only when input has label

---
 code/app/src/lib/components/input.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'code/app/src/lib/components/input.svelte')

diff --git a/code/app/src/lib/components/input.svelte b/code/app/src/lib/components/input.svelte
index c0ed654..efd8946 100644
--- a/code/app/src/lib/components/input.svelte
+++ b/code/app/src/lib/components/input.svelte
@@ -60,7 +60,7 @@
             </span>
         </div>
     {/if}
-    <div class="mt-1 {hasBling ? 'relative rounded-md' : ''} {addon ? 'flex' : ''}">
+    <div class="{label ? 'mt-1' : ''} {hasBling ? 'relative rounded-md' : ''} {addon ? 'flex' : ''}">
         {#if icon}
             <div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
                 <svelte:component this={icon} class={errorText ? "text-red-500" : "text-gray-400"} />
-- 
cgit v1.3

