Skip to content

Commit

Permalink
Merge pull request #14 from interledger/11-alignment-issues-on-live
Browse files Browse the repository at this point in the history
Fix height issue and button sizes
  • Loading branch information
Tymmmy authored Apr 29, 2024
2 parents 0288f74 + 4ade32f commit 684f376
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 57 deletions.
16 changes: 7 additions & 9 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,13 @@ export default function App() {
<Links />
</head>

<body className="bg-background text-primary">
<div className="flex h-screen items-center justify-center">
<div className="bg-foreground py-4 px-6 w-full h-full md:w-3/4 md:h-5/6 shadow-md rounded-sm">
<DialogProvider>
<DialPadProvider>
<Outlet />
</DialPadProvider>
</DialogProvider>
</div>
<body className="bg-background h-screen text-primary flex justify-center items-center">
<div className="bg-foreground h-fit py-10 px-6 w-full md:w-3/4 shadow-md rounded-sm">
<DialogProvider>
<DialPadProvider>
<Outlet />
</DialPadProvider>
</DialogProvider>
</div>
<ScrollRestoration />
<Scripts />
Expand Down
17 changes: 9 additions & 8 deletions app/routes/pay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,15 @@ export default function Pay() {
{...conform.input(fields.amount)}
value={Number(amountValue)}
/>
<Button
aria-label="pay"
type="submit"
size="xl"
onClick={() => setOpen(true)}
>
Pay with Interledger
</Button>
<div className="flex justify-center">
<Button
aria-label="pay"
type="submit"
onClick={() => setOpen(true)}
>
Pay with Interledger
</Button>
</div>
</div>
</Form>
</div>
Expand Down
17 changes: 9 additions & 8 deletions app/routes/payment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,15 @@ export default function PayRequest() {
{...conform.input(fields.incomingPaymentUrl)}
value={data.url || ""}
/>
<Button
aria-label="pay"
type="submit"
size="xl"
onClick={() => setOpen(true)}
>
Pay with Interledger
</Button>
<div className="flex justify-center">
<Button
aria-label="pay"
type="submit"
onClick={() => setOpen(true)}
>
Pay with Interledger
</Button>
</div>
</Form>
</div>
</div>
Expand Down
41 changes: 20 additions & 21 deletions app/routes/quote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,27 +94,26 @@ export default function Quote() {
value={data.receiveAmount}
variant="info"
></Field>
<Button
aria-label="confirm-pay"
type="submit"
size="xl"
className="mb-5"
value="CONFIRM"
name="action"
>
Confirm payment
</Button>
<Button
aria-label="cancel-pay"
type="submit"
size="xl"
variant="destructive"
value="CANCEL"
name="action"
onClick={() => setOpen(false)}
>
Cancel payment
</Button>
<div className="flex justify-center items-center gap-3">
<Button
aria-label="confirm-pay"
type="submit"
value="CONFIRM"
name="action"
>
Confirm payment
</Button>
<Button
aria-label="cancel-pay"
type="submit"
variant="destructive"
value="CANCEL"
name="action"
onClick={() => setOpen(false)}
>
Cancel payment
</Button>
</div>
</Form>
</div>
</div>
Expand Down
13 changes: 5 additions & 8 deletions app/routes/request.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,11 @@ export default function Request() {
{...conform.input(fields.amount)}
value={amountValue}
/>
<Button
aria-label="pay"
type="submit"
variant="outline"
size="xl"
>
Create Request
</Button>
<div className="flex justify-center">
<Button aria-label="pay" type="submit" variant="outline">
Create Request
</Button>
</div>
</div>
</Form>
</div>
Expand Down
8 changes: 5 additions & 3 deletions app/routes/shareRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,11 @@ export default function ShareRequest() {
>
Share payment link
</Button>
<Button type="submit" className="mt-8" size="xl">
Close
</Button>
<div className="flex justify-center">
<Button type="submit" className="mt-8">
Close
</Button>
</div>
</Form>
</div>
</div>
Expand Down

0 comments on commit 684f376

Please sign in to comment.