From 5880eecce07368646017d21f06389579004e16f6 Mon Sep 17 00:00:00 2001 From: Steffen Illium Date: Mon, 29 Sep 2025 10:39:37 +0200 Subject: [PATCH] cursor pointer for references --- components/publication-card.tsx | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/components/publication-card.tsx b/components/publication-card.tsx index c9146b3d..e69176de 100644 --- a/components/publication-card.tsx +++ b/components/publication-card.tsx @@ -7,14 +7,7 @@ import { TooltipTrigger, } from "@/components/ui/tooltip"; import { cn } from "@/lib/utils"; -import { - BookOpen, - Check, - Copy, - FileText, - Paperclip, - X, -} from "lucide-react"; +import { BookOpen, Check, Copy, FileText, Paperclip, X } from "lucide-react"; import Image from "next/image"; import { useState } from "react"; import { TrackedButton } from "./util-tracked-button"; @@ -53,7 +46,6 @@ export function PublicationCard({ const buttonSize = "sm"; const buttonStyle = "ghost"; - const handleCopy = () => { if (navigator.clipboard?.writeText) { navigator.clipboard @@ -123,13 +115,12 @@ export function PublicationCard({ return (
+ onClick={handleCardClick}>
{ImageContent}
@@ -151,8 +142,7 @@ export function PublicationCard({ size={buttonSize} className="h-7 w-7 cursor-pointer px-2 hover:border" onClick={handleDownload} - eventName={`${bibtexKey}-bibfile`} - > + eventName={`${bibtexKey}-bibfile`}> @@ -168,8 +158,7 @@ export function PublicationCard({ size={buttonSize} className="relative h-7 w-7 cursor-pointer px-2 hover:border" onClick={handleCopy} - eventName={`${bibtexKey}-copycite`} - > + eventName={`${bibtexKey}-copycite`}> {copyStatus === "idle" && } {copyStatus === "success" && ( @@ -190,14 +179,12 @@ export function PublicationCard({ size={buttonSize} className="h-7 w-7 px-2 hover:border" onClick={(e) => e.stopPropagation()} - asChild - > + asChild> + rel="noopener noreferrer"> @@ -210,4 +197,4 @@ export function PublicationCard({
); -}; \ No newline at end of file +}