diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-10-11 06:55:56 +0200 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-10-11 06:55:56 +0200 |
| commit | 14ab0bda54354960c627c3e9912e6f41026c3b58 (patch) | |
| tree | 0b7bfb33057a10dfd554fe70fc5b6b3a3eb96f89 /code/app/src/lib | |
| parent | e15b552db821657741bfecbc5ec1aacd34481517 (diff) | |
| download | greatoffice-14ab0bda54354960c627c3e9912e6f41026c3b58.tar.xz greatoffice-14ab0bda54354960c627c3e9912e6f41026c3b58.zip | |
refactor: Add mt-1 only when input has label
Diffstat (limited to 'code/app/src/lib')
| -rw-r--r-- | code/app/src/lib/components/input.svelte | 2 |
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"} /> |
