From ad44607b609e37f7dfb8a79022dbde085e1734c2 Mon Sep 17 00:00:00 2001 From: Edouard Wautier <4435185+Duncid@users.noreply.github.com> Date: Mon, 16 Dec 2024 18:37:43 +0100 Subject: [PATCH] Updating --- sparkle/src/components/Citation.tsx | 44 +++++++++++++++++------- sparkle/src/stories/Card.stories.tsx | 3 +- sparkle/src/stories/Citation.stories.tsx | 36 ++++++++++++------- 3 files changed, 57 insertions(+), 26 deletions(-) diff --git a/sparkle/src/components/Citation.tsx b/sparkle/src/components/Citation.tsx index 1694c352bb0f..ae77221ac394 100644 --- a/sparkle/src/components/Citation.tsx +++ b/sparkle/src/components/Citation.tsx @@ -1,7 +1,9 @@ import React, { ReactNode } from "react"; import { - Button, Card, CardProps, + Button, + Card, + CardProps, Spinner, Tooltip, } from "@sparkle/components/"; @@ -16,7 +18,14 @@ type CitationProps = CardProps & { const Citation = React.forwardRef( ( - { children, variant = "primary", isLoading, className, tooltip, ...props }, + { + children, + variant = "secondary", + isLoading, + className, + tooltip, + ...props + }, ref ) => { const cardButton = ( @@ -25,7 +34,7 @@ const Citation = React.forwardRef( variant={variant} size="sm" className={cn( - "s-relative s-flex s-aspect-[2/1] s-min-w-[140px] s-flex-none s-flex-col s-justify-end", + "s-relative s-flex s-aspect-[2/1] s-min-w-[140px] s-flex-none s-flex-col s-justify-end s-overflow-hidden", className )} {...props} @@ -71,7 +80,7 @@ const CitationGrid = React.forwardRef< >(({ children, className, ...props }, ref) => { return (
-
+
{children}
@@ -91,12 +100,8 @@ const CitationClose = React.forwardRef(