Skip to content

Commit

Permalink
Merge pull request #9 from getAlby/input-mode
Browse files Browse the repository at this point in the history
input mode to show numeric keybad on iOS
  • Loading branch information
rolznz authored Jan 7, 2024
2 parents f86e205 + 309e73b commit 06b40e7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/pages/wallet/New.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,18 @@ export function New() {
return (
<>
<Navbar />
<div className="flex flex-1 flex-col w-full h-full justify-center items-center">
<div className="flex h-full w-full flex-1 flex-col items-center justify-center">
<form
onSubmit={onSubmit}
className="flex flex-col justify-center items-center w-full h-full"
className="flex h-full w-full flex-col items-center justify-center"
>
<div className="flex flex-col justify-center items-center grow max-w-full gap-5">
<div className="flex max-w-full grow flex-col items-center justify-center gap-5">
<p>Amount (sats)</p>
<input
type="number"
className="input input-ghost text-6xl text-center max-w-full"
inputMode="numeric"
pattern="[0-9]*"
className="input input-ghost max-w-full text-center text-6xl p-16"
placeholder="0"
value={amount}
onChange={(e) => setAmount(e.target.value)}
Expand Down

0 comments on commit 06b40e7

Please sign in to comment.