From 3004f5ef7843d6ba02476320c40dad4a42507d5a Mon Sep 17 00:00:00 2001 From: Steffen Illium Date: Thu, 18 Sep 2025 20:18:23 +0200 Subject: [PATCH] fixed click propagation --- components/publication-card.tsx | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/components/publication-card.tsx b/components/publication-card.tsx index 3de6e7d2..fca755cd 100644 --- a/components/publication-card.tsx +++ b/components/publication-card.tsx @@ -1,5 +1,5 @@ "use client"; -import { Button } from "@/components/ui/button"; +import { Button, buttonVariants } from "@/components/ui/button"; import { CardTitle } from "@/components/ui/card"; import { Tooltip, @@ -50,6 +50,10 @@ export function PublicationCard({ ); const [imageError, setImageError] = useState(false); + const buttonSize = "sm"; + const buttonStyle = "ghost"; + + const handleCopy = () => { if (navigator.clipboard?.writeText) { navigator.clipboard @@ -144,9 +148,9 @@ export function PublicationCard({ @@ -161,9 +165,9 @@ export function PublicationCard({ @@ -183,9 +187,10 @@ export function PublicationCard({