From 94479ff714240df84a451ee632da12d29f4ab066 Mon Sep 17 00:00:00 2001 From: Bohdan Triapitsyn Date: Wed, 9 Sep 2026 23:50:58 +0300 Subject: [PATCH] style: reduce message action button and icon sizes --- .../components/chat/message/MessageBody.tsx | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/packages/ui/src/components/chat/message/MessageBody.tsx b/packages/ui/src/components/chat/message/MessageBody.tsx index 5d5b2da2..1087dee3 100644 --- a/packages/ui/src/components/chat/message/MessageBody.tsx +++ b/packages/ui/src/components/chat/message/MessageBody.tsx @@ -641,7 +641,7 @@ const UserMessageBody = React.memo(({ messageId, parts, messageCreatedAt, isMobi )}>
{isMessageCopied ? ( - + ) : ( - + )} @@ -1124,7 +1124,7 @@ const AssistantMessageActionButtons = React.memo(({ variant="ghost" disabled={isTransferringReview || !hasCopyableText} className={cn( - 'h-7 w-7 text-muted-foreground bg-transparent hover:text-foreground hover:!bg-transparent active:!bg-transparent focus-visible:!bg-transparent focus-visible:ring-2 focus-visible:ring-primary/50', + 'h-6 w-6 text-muted-foreground bg-transparent hover:text-foreground hover:!bg-transparent active:!bg-transparent focus-visible:!bg-transparent focus-visible:ring-2 focus-visible:ring-primary/50', (!hasCopyableText || isTransferringReview) && 'opacity-50' )} aria-label={reviewTransferAction.ariaLabel} @@ -1134,9 +1134,9 @@ const AssistantMessageActionButtons = React.memo(({ }} > {isTransferringReview ? ( - + ) : ( - + )} @@ -1151,7 +1151,7 @@ const AssistantMessageActionButtons = React.memo(({ variant="ghost" disabled={isSharing || !hasCopyableText} className={cn( - 'h-7 w-7 text-muted-foreground bg-transparent hover:text-foreground hover:!bg-transparent active:!bg-transparent focus-visible:!bg-transparent focus-visible:ring-2 focus-visible:ring-primary/50', + 'h-6 w-6 text-muted-foreground bg-transparent hover:text-foreground hover:!bg-transparent active:!bg-transparent focus-visible:!bg-transparent focus-visible:ring-2 focus-visible:ring-primary/50', (!hasCopyableText || isSharing) && 'opacity-50' )} onPointerDown={(event) => event.stopPropagation()} @@ -1160,9 +1160,9 @@ const AssistantMessageActionButtons = React.memo(({ }} > {isSharing ? ( - + ) : ( - + )} @@ -1176,7 +1176,7 @@ const AssistantMessageActionButtons = React.memo(({ variant="ghost" size="icon" className={cn( - 'h-7 w-7 bg-transparent hover:!bg-transparent active:!bg-transparent focus-visible:!bg-transparent focus-visible:ring-2 focus-visible:ring-primary/50', + 'h-6 w-6 bg-transparent hover:!bg-transparent active:!bg-transparent focus-visible:!bg-transparent focus-visible:ring-2 focus-visible:ring-primary/50', isTTSPlaying ? 'text-green-500' : 'text-muted-foreground hover:text-foreground' )} aria-label={isTTSPlaying ? t('chat.messageBody.tts.stopSpeaking') : t('chat.messageBody.tts.readAloud')} @@ -1184,9 +1184,9 @@ const AssistantMessageActionButtons = React.memo(({ onClick={handleTTSClick} > {isTTSPlaying ? ( - + ) : ( - + )} @@ -1948,7 +1948,7 @@ const AssistantMessageBody = React.memo(({