From ae507b767ee9ad60d4f49f6ec497a66bf9b30580 Mon Sep 17 00:00:00 2001 From: Junichi Sugiura Date: Thu, 23 Jan 2025 00:17:28 +0900 Subject: [PATCH] Limit example width to screen (#1314) --- examples/next/src/app/page.tsx | 2 +- .../next/src/components/DelegateAccount.tsx | 7 ++-- examples/next/src/components/InvalidTxn.tsx | 3 +- .../next/src/components/ManualTransferEth.tsx | 39 ++++++++++--------- examples/next/src/components/Profile.tsx | 9 +++-- examples/next/src/components/Transfer.tsx | 35 +++++++++-------- 6 files changed, 52 insertions(+), 43 deletions(-) diff --git a/examples/next/src/app/page.tsx b/examples/next/src/app/page.tsx index 9e2a00b05..67c15acde 100644 --- a/examples/next/src/app/page.tsx +++ b/examples/next/src/app/page.tsx @@ -14,7 +14,7 @@ import { Transfer } from "components/Transfer"; const Home: FC = () => { return ( -
+

Controller Example (Next.js) diff --git a/examples/next/src/components/DelegateAccount.tsx b/examples/next/src/components/DelegateAccount.tsx index c4347f222..a2461ec5c 100644 --- a/examples/next/src/components/DelegateAccount.tsx +++ b/examples/next/src/components/DelegateAccount.tsx @@ -63,7 +63,8 @@ export const DelegateAccount = () => { return (

Delegate account

-

+ +

Address:{" "} {isDelegateSupported ? ( <> @@ -73,9 +74,9 @@ export const DelegateAccount = () => { ) : ( "Not deployed" )} -

+
-
+

Invalid Entry Point

-
+ +
- - - {txnHash && ( - <> -

Transaction: {txnHash}

-

Chain: {network}

- - )} +
+ + + + {txnHash && ( + <> +

Transaction: {txnHash}

+ +

Chain: {network}

+ + )} +
); }; diff --git a/examples/next/src/components/Profile.tsx b/examples/next/src/components/Profile.tsx index e20c6c2c0..8687264a6 100644 --- a/examples/next/src/components/Profile.tsx +++ b/examples/next/src/components/Profile.tsx @@ -29,10 +29,11 @@ export function Profile() { } return ( -
+

Open Profile

+
-
+
@@ -52,7 +53,7 @@ export function Profile() { Activity
-
+
-
+
- - - {txnHash && ( - <> -

Transaction: {txnHash}

-

Chain: {network}

- - )} + +
+ + + + {txnHash && ( + <> +

Transaction: {txnHash}

+

Chain: {network}

+ + )} +
); };