mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-10-07 06:08:00 +03:00
disable selecting card contents, press card icon to copy number
This commit is contained in:
@@ -18,7 +18,7 @@ export function AimeCardEntry(props: AMCardActionProps & { card: AimeCard, child
|
||||
</AMCardDetail>
|
||||
)}
|
||||
<AMCardDetail>
|
||||
<CreditCard className="h-5 w-5"/>
|
||||
<CreditCard className="h-5 w-5 cursor-pointer" onClick={() => navigator.clipboard.writeText(props.card.id)}/>
|
||||
<code>{isDesktop
|
||||
? props.card.id.match(/.{1,4}/g)?.join(" ")
|
||||
: `•••• ${props.card.id.substring(props.card.id.length - 4)}`}
|
||||
|
||||
@@ -34,7 +34,7 @@ export function AMCard(props: AMCardActionProps & { title: string, titlePerforms
|
||||
|
||||
export function AMCardDetail(props: { children?: Readonly<React.ReactNode> }) {
|
||||
return (
|
||||
<div className="inline-flex items-center max-w-full gap-2 text-gray-500">
|
||||
<div className="inline-flex items-center max-w-full gap-2 text-gray-500 select-none md:select-text">
|
||||
{props.children}
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user