Merge pull request #273 from Crossbell-Box/fix-card-click

This commit is contained in:
DIYgod 2023-03-29 00:20:40 +01:00 committed by GitHub
commit bf61503c4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -50,10 +50,14 @@ export const CharacterCard: React.FC<{
return (
<span
className={cn(
"border-gray-100 rounded-lg text-sm block",
"border-gray-100 rounded-lg text-sm block cursor-default",
style === "flat" ? "" : "p-4 bg-white shadow-xl",
simple ? "space-y-1" : "space-y-2",
)}
onClick={(e) => {
e.preventDefault()
e.stopPropagation()
}}
>
{site ? (
<>