Skip to content

Commit

Permalink
Merge pull request #2836 from Rithvik-padma/#2788
Browse files Browse the repository at this point in the history
Fix the small padding issue
  • Loading branch information
rolznz authored Nov 16, 2023
2 parents e5eb4ef + 0edc037 commit 9cd7645
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 35 deletions.
2 changes: 1 addition & 1 deletion src/app/components/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function Container({
<div
className={`container mx-auto px-4 pb-4 ${getMaxWidthClass(maxWidth)} ${
justifyBetween
? "h-full flex flex-col justify-between no-scrollbar"
? "min-h-full flex flex-col justify-between no-scrollbar"
: ""
}`}
>
Expand Down
71 changes: 37 additions & 34 deletions src/app/screens/LNURLPay/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,31 +329,37 @@ function LNURLPay() {
}

return (
<Container justifyBetween maxWidth="sm">
<div>
<ResultCard
isSuccess
message={tCommon("success_message", {
amount: getFormattedSats(valueSat),
fiatAmount: showFiat ? ` (${fiatValue})` : ``,
destination: navState.origin?.name || getRecipient(),
})}
/>
{isMessage && (
<dl className="shadow bg-white dark:bg-surface-02dp mt-4 pt-4 px-4 rounded-lg mb-6 overflow-hidden">
{descriptionList.map(([dt, dd]) => (
<>
<Dt>{dt}</Dt>
<Dd>{dd}</Dd>
</>
))}
</dl>
)}
</div>
<div className="mb-4">
<Button onClick={close} label={tCommon("actions.close")} fullWidth />
</div>
</Container>
<div className="grow">
<Container justifyBetween maxWidth="sm">
<div>
<ResultCard
isSuccess
message={tCommon("success_message", {
amount: getFormattedSats(valueSat),
fiatAmount: showFiat ? ` (${fiatValue})` : ``,
destination: navState.origin?.name || getRecipient(),
})}
/>
{isMessage && (
<dl className="shadow bg-white dark:bg-surface-02dp mt-4 pt-4 px-4 rounded-lg mb-6 overflow-hidden">
{descriptionList.map(([dt, dd]) => (
<>
<Dt>{dt}</Dt>
<Dd>{dd}</Dd>
</>
))}
</dl>
)}
</div>
<div>
<Button
onClick={close}
label={tCommon("actions.close")}
fullWidth
/>
</div>
</Container>
</div>
);
}

Expand Down Expand Up @@ -412,12 +418,9 @@ function LNURLPay() {
description={getRecipient()}
image={navState.origin?.icon || getImage()}
/>
<form onSubmit={handleSubmit} className="h-full">
<fieldset
disabled={loadingConfirm}
className="h-full flex flex-col justify-between"
>
<div>
<form onSubmit={handleSubmit} className="grow flex">
<div className="grow flex flex-col justify-between">
<fieldset disabled={loadingConfirm}>
<dl className="mt-4 overflow-hidden">
<>
{formattedMetadata(details.metadata).map(
Expand Down Expand Up @@ -480,7 +483,7 @@ function LNURLPay() {
)}

{(showNameField() || showEmailField()) && (
<div className="flex justify-center mt-4">
<div className="flex justify-center mt-4 caret-transparent">
<Hyperlink onClick={toggleShowMoreFields}>
{tCommon("actions.more")}{" "}
{showMoreFields ? (
Expand Down Expand Up @@ -522,7 +525,7 @@ function LNURLPay() {
)}
</div>
)}
</div>
</fieldset>
<div className="mt-2 dark:border-white/10">
<ConfirmOrCancel
isFocused={false}
Expand All @@ -534,7 +537,7 @@ function LNURLPay() {
onCancel={reject}
/>
</div>
</fieldset>
</div>
</form>
</Container>
</div>
Expand Down

0 comments on commit 9cd7645

Please sign in to comment.