From 1c8aad9e198c606ea317e4d7b193c47ea7d9b4e6 Mon Sep 17 00:00:00 2001 From: Oli Evans Date: Fri, 19 Jan 2024 16:20:01 +0000 Subject: [PATCH] feat: show a preview of the url in the cid page. Very cheap preview of the gateway view in the cid page via an iframe. Disable interaction on the iframe with the `inert` attributes. No clicking through, that way lies madness. We probably don't want to do this, but it does show how useful a visual preview of the contnet would be. License: MIT Signed-off-by: Oli Evans --- src/app/space/[did]/root/[cid]/page.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/app/space/[did]/root/[cid]/page.tsx b/src/app/space/[did]/root/[cid]/page.tsx index 781a245..985270e 100644 --- a/src/app/space/[did]/root/[cid]/page.tsx +++ b/src/app/space/[did]/root/[cid]/page.tsx @@ -51,17 +51,20 @@ export default function ItemPage ({ params }: PageProps): JSX.Element { {root.toString()} -

URL

-
- {url} - -

Shards

{upload.isLoading ? : upload.data?.shards?.map(link => )}
+

URL

+
+
+ {url} + +
+ +
) }