aboutsummaryrefslogtreecommitdiffstats
path: root/code/app/src
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-10-11 06:55:56 +0200
committerivarlovlie <git@ivarlovlie.no>2022-10-11 06:55:56 +0200
commit14ab0bda54354960c627c3e9912e6f41026c3b58 (patch)
tree0b7bfb33057a10dfd554fe70fc5b6b3a3eb96f89 /code/app/src
parente15b552db821657741bfecbc5ec1aacd34481517 (diff)
downloadgreatoffice-14ab0bda54354960c627c3e9912e6f41026c3b58.tar.xz
greatoffice-14ab0bda54354960c627c3e9912e6f41026c3b58.zip
refactor: Add mt-1 only when input has label
Diffstat (limited to 'code/app/src')
-rw-r--r--code/app/src/lib/components/input.svelte2
1 files changed, 1 insertions, 1 deletions
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"} />