@@ -534,66 +534,66 @@ export function ResultDashboard({
534534 </ Card >
535535 ) : null }
536536
537- < div className = "flex flex-wrap justify-end gap-2" >
537+ < div className = "grid w-full grid-cols-3 gap-2 sm: flex sm:w-auto sm: justify-end sm: gap-2" >
538538 < Button
539539 variant = "secondary"
540540 size = "sm"
541541 onClick = { handleShare }
542- className = "flex items-center gap-2 "
542+ className = "flex w-full items-center justify-center gap-1.5 px-2 text-xs sm:w-auto sm:px-3 sm:text-sm "
543543 aria-label = { t ( "results.shareAria" ) }
544544 >
545545 { shareState === "success" ? (
546546 < >
547- < Check className = "h-4 w-4 text-green-500" />
548- < span className = "text-green-500" > { t ( "results.shareSuccess" ) } </ span >
547+ < Check className = "h-3.5 w-3.5 shrink-0 text-green-500 sm:h-4 sm:w-4 " />
548+ < span className = "truncate text-green-500" > { t ( "results.shareSuccess" ) } </ span >
549549 </ >
550550 ) : shareState === "error" ? (
551551 < >
552- < XCircle className = "h-4 w-4 text-destructive" />
553- < span className = "text-destructive" > { t ( "results.shareError" ) } </ span >
552+ < XCircle className = "h-3.5 w-3.5 shrink-0 text-destructive sm:h-4 sm:w-4 " />
553+ < span className = "truncate text-destructive" > { t ( "results.shareError" ) } </ span >
554554 </ >
555555 ) : (
556556 < >
557- < Share2 className = "h-4 w-4" />
558- { t ( "results.share" ) }
557+ < Share2 className = "h-3.5 w-3.5 shrink-0 sm:h-4 sm: w-4" />
558+ < span className = "truncate" > { t ( "results.share" ) } </ span >
559559 </ >
560560 ) }
561561 </ Button >
562562 < Button
563563 variant = "secondary"
564564 size = "sm"
565565 onClick = { handleCopy }
566- className = "flex items-center gap-2 "
566+ className = "flex w-full items-center justify-center gap-1.5 px-2 text-xs sm:w-auto sm:px-3 sm:text-sm "
567567 aria-label = { t ( "results.copyAria" ) }
568568 >
569569 { copied ? (
570570 < >
571- < Check className = "h-4 w-4 text-green-500" />
572- < span className = "text-green-500" > { t ( "results.copied" ) } </ span >
571+ < Check className = "h-3.5 w-3.5 shrink-0 text-green-500 sm:h-4 sm:w-4 " />
572+ < span className = "truncate text-green-500" > { t ( "results.copied" ) } </ span >
573573 </ >
574574 ) : (
575575 < >
576- < Copy className = "h-4 w-4" />
577- { t ( "results.copy" ) }
576+ < Copy className = "h-3.5 w-3.5 shrink-0 sm:h-4 sm: w-4" />
577+ < span className = "truncate" > { t ( "results.copy" ) } </ span >
578578 </ >
579579 ) }
580580 </ Button >
581581 < Button
582582 variant = "secondary"
583583 size = "sm"
584584 onClick = { handleCopyMarkdown }
585- className = "flex items-center gap-2 "
585+ className = "flex w-full items-center justify-center gap-1.5 px-2 text-xs sm:w-auto sm:px-3 sm:text-sm "
586586 aria-label = { t ( "results.copyMarkdownAria" ) }
587587 >
588588 { markdownCopied ? (
589589 < >
590- < Check className = "h-4 w-4 text-green-500" />
591- < span className = "text-green-500" > { t ( "results.copied" ) } </ span >
590+ < Check className = "h-3.5 w-3.5 shrink-0 text-green-500 sm:h-4 sm:w-4 " />
591+ < span className = "truncate text-green-500" > { t ( "results.copied" ) } </ span >
592592 </ >
593593 ) : (
594594 < >
595- < Copy className = "h-4 w-4" />
596- { t ( "results.copyMarkdown" ) }
595+ < Copy className = "h-3.5 w-3.5 shrink-0 sm:h-4 sm: w-4" />
596+ < span className = "truncate" > { t ( "results.copyMarkdown" ) } </ span >
597597 </ >
598598 ) }
599599 </ Button >
0 commit comments