diff options
| author | Adam Soltys <[email protected]> | 2024-02-20 23:17:57 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-02-20 23:17:57 -0800 |
| commit | 4c0102db94287b5adc2333d874a35154aaf86d43 (patch) | |
| tree | 6c2882b7ed4db076ffe70a586c78f06bcddfaa61 /src/components | |
| parent | fbf3cef47c612b9c334917f10c810c797fc77da6 (diff) | |
| download | coinos-ui-items.tar.gz coinos-ui-items.zip | |
item drag and dropitems
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/ItemForm.svelte | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/components/ItemForm.svelte b/src/components/ItemForm.svelte index 71114c29..bd300344 100644 --- a/src/components/ItemForm.svelte +++ b/src/components/ItemForm.svelte @@ -5,6 +5,7 @@ import { applyAction, deserialize } from "$app/forms"; import Spinner from "$comp/Spinner.svelte"; export let item; + export let user; let fileInput, formElement, file, submitting, progress; let select = () => fileInput.click(); @@ -79,7 +80,18 @@ <div> <label for="price" class="font-bold mb-1 block">{$t("items.price")}</label> - <input name="price" bind:value={item.price} /> + <div class="flex"> + <input + name="price" + bind:value={item.price} + class="border-r-none rounded-r-none" + /> + <div + class="text-gray-600 rounded-r-2xl p-4 my-auto rounded-l-none rounded border bg-gray-100" + > + {user.currency} + </div> + </div> </div> <div class="w-full"> @@ -123,7 +135,7 @@ </div> <button - class="rounded-full py-5 px-6 font-bold hover:opacity-80 flex bg-black text-white text-2xl" + class="rounded-full py-5 px-6 font-bold hover:opacity-80 bg-black text-white text-2xl w-full text-center" > {#if submitting} <Spinner /> |
