Re work modal scrolling
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
import Button from "@lib/components/Button.svelte"
|
||||
import ModalHeader from "@lib/components/ModalHeader.svelte"
|
||||
import ModalFooter from "@lib/components/ModalFooter.svelte"
|
||||
import Modal from "@lib/components/Modal.svelte"
|
||||
import ModalBody from "@lib/components/ModalBody.svelte"
|
||||
import Wallet from "@assets/icons/wallet.svg?dataurl"
|
||||
import CheckCircle from "@assets/icons/check-circle.svg?dataurl"
|
||||
import {updateProfile} from "@app/core/commands"
|
||||
@@ -42,49 +44,50 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="column gap-4">
|
||||
<ModalHeader>
|
||||
{#snippet title()}
|
||||
Update Lightning Address
|
||||
{/snippet}
|
||||
{#snippet info()}
|
||||
Update your lightning address for receiving payments.
|
||||
{/snippet}
|
||||
</ModalHeader>
|
||||
<Modal>
|
||||
<ModalBody>
|
||||
<ModalHeader>
|
||||
{#snippet title()}
|
||||
Update Lightning Address
|
||||
{/snippet}
|
||||
{#snippet info()}
|
||||
Update your lightning address for receiving payments.
|
||||
{/snippet}
|
||||
</ModalHeader>
|
||||
|
||||
<div class="column gap-4">
|
||||
<div class="column gap-2">
|
||||
<span> Lightning Address </span>
|
||||
<input
|
||||
type="text"
|
||||
placeholder="user@domain.com"
|
||||
bind:value={address}
|
||||
class="input input-bordered flex w-full"
|
||||
disabled={isLoading} />
|
||||
<p class="text-xs opacity-75">
|
||||
You can enter one manually or use your connected wallet's address (if available). Leave
|
||||
empty to remove your lightning address
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{#if walletLud16 && walletLud16 !== address}
|
||||
<div class="card bg-base-200 p-4">
|
||||
<div class="flex items-center justify-between gap-3">
|
||||
<div class="column gap-1">
|
||||
<div class="flex items-center gap-2">
|
||||
<Icon icon={Wallet} size={4} />
|
||||
<span class="text-sm font-medium">Wallet Address</span>
|
||||
</div>
|
||||
<p class="text-xs opacity-75">{walletLud16}</p>
|
||||
</div>
|
||||
<Button class="btn btn-outline btn-sm" onclick={useWalletAddress} disabled={isLoading}>
|
||||
Use This
|
||||
</Button>
|
||||
</div>
|
||||
<div class="column gap-4">
|
||||
<div class="column gap-2">
|
||||
<span> Lightning Address </span>
|
||||
<input
|
||||
type="text"
|
||||
placeholder="user@domain.com"
|
||||
bind:value={address}
|
||||
class="input input-bordered flex w-full"
|
||||
disabled={isLoading} />
|
||||
<p class="text-xs opacity-75">
|
||||
You can enter one manually or use your connected wallet's address (if available). Leave
|
||||
empty to remove your lightning address
|
||||
</p>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{#if walletLud16 && walletLud16 !== address}
|
||||
<div class="card bg-base-200 p-4">
|
||||
<div class="flex items-center justify-between gap-3">
|
||||
<div class="column gap-1">
|
||||
<div class="flex items-center gap-2">
|
||||
<Icon icon={Wallet} size={4} />
|
||||
<span class="text-sm font-medium">Wallet Address</span>
|
||||
</div>
|
||||
<p class="text-xs opacity-75">{walletLud16}</p>
|
||||
</div>
|
||||
<Button class="btn btn-outline btn-sm" onclick={useWalletAddress} disabled={isLoading}>
|
||||
Use This
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</ModalBody>
|
||||
<ModalFooter>
|
||||
<Button class="btn btn-neutral" onclick={back} disabled={isLoading}>Cancel</Button>
|
||||
<Button class="btn btn-primary" onclick={save} disabled={isLoading}>
|
||||
@@ -96,4 +99,4 @@
|
||||
Save Changes
|
||||
</Button>
|
||||
</ModalFooter>
|
||||
</div>
|
||||
</Modal>
|
||||
|
||||
Reference in New Issue
Block a user