From fd300b36494c5f0726a4a68374a5e182830a5c75 Mon Sep 17 00:00:00 2001 From: ppc Date: Sat, 10 Aug 2024 18:09:28 +0100 Subject: [PATCH] disable selecting card contents, press card icon to copy number --- aimenet-web/src/components/aime-card.tsx | 2 +- aimenet-web/src/components/am-card.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aimenet-web/src/components/aime-card.tsx b/aimenet-web/src/components/aime-card.tsx index 7a9b442..06d09ec 100644 --- a/aimenet-web/src/components/aime-card.tsx +++ b/aimenet-web/src/components/aime-card.tsx @@ -18,7 +18,7 @@ export function AimeCardEntry(props: AMCardActionProps & { card: AimeCard, child )} - + navigator.clipboard.writeText(props.card.id)}/> {isDesktop ? props.card.id.match(/.{1,4}/g)?.join(" ") : `•••• ${props.card.id.substring(props.card.id.length - 4)}`} diff --git a/aimenet-web/src/components/am-card.tsx b/aimenet-web/src/components/am-card.tsx index c28727f..f22540f 100644 --- a/aimenet-web/src/components/am-card.tsx +++ b/aimenet-web/src/components/am-card.tsx @@ -34,7 +34,7 @@ export function AMCard(props: AMCardActionProps & { title: string, titlePerforms export function AMCardDetail(props: { children?: Readonly }) { return ( -
+
{props.children}
)