diff options
| author | secondl1ght <[email protected]> | 2022-09-17 09:08:27 -0600 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-24 09:05:08 -0700 |
| commit | 8668605d6244a2a5984acccbc7f48c9248823dcb (patch) | |
| tree | 7cefce79977a6a81d82189a7a7d99ddcdab09da6 /src | |
| parent | 0a03fc6e5f7025eef53565b20d19d4614733ff42 (diff) | |
| download | coinos-ui-8668605d6244a2a5984acccbc7f48c9248823dcb.tar.gz coinos-ui-8668605d6244a2a5984acccbc7f48c9248823dcb.zip | |
add close button to desktop, remove min value, make apply button full w
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/invoice/[id]/+page.svelte | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/routes/invoice/[id]/+page.svelte b/src/routes/invoice/[id]/+page.svelte index b4550814..d5c0282f 100644 --- a/src/routes/invoice/[id]/+page.svelte +++ b/src/routes/invoice/[id]/+page.svelte @@ -179,6 +179,10 @@ <button class="block md:hidden bg-primary rounded-full p-2" on:click={handleMobileClose} ><Icon icon="close" /></button > + <button + class="hidden {showCustomAmount ? 'md:block' : ''}" + on:click={() => (showCustomAmount = false)}><Icon icon="close" /></button + > </div> <h1 class="hidden md:block text-4xl font-semibold">{$t('invoice.addTipq')}</h1> {#if !showCustomAmount} @@ -224,13 +228,12 @@ <input bind:this={customInput} type="number" - min="0" on:input={(e) => handleCustomTipAmount(e)} class="pl-10" placeholder="Other" /> <button - class="w-full md:w-auto mt-2 bg-black text-white font-semibold py-3 px-7 rounded-2xl {showMobileTip + class="w-full mt-2 bg-black text-white font-semibold py-3 px-7 rounded-2xl {showMobileTip ? !customTipAmount && !tipAmount ? 'opacity-50' : 'opacity-100' |
