refactor: update styling in ConnectorIndicator and ChatShareButton components to prevent text selection, enhancing user interface consistency

This commit is contained in:
Anish Sarkar 2026-03-07 00:08:08 +05:30
parent 74e8fb1cee
commit c9d92ee5a0
2 changed files with 2 additions and 2 deletions

View file

@ -214,7 +214,7 @@ export const ConnectorIndicator: FC = () => {
<> <>
<Cable className="size-4 stroke-[1.5px]" /> <Cable className="size-4 stroke-[1.5px]" />
{activeConnectorsCount > 0 && ( {activeConnectorsCount > 0 && (
<span className="absolute -top-0.5 right-0 flex items-center justify-center min-w-[16px] h-4 px-1 text-[10px] font-medium rounded-full bg-primary text-primary-foreground shadow-sm"> <span className="absolute -top-0.5 right-0 flex items-center justify-center min-w-[16px] h-4 px-1 text-[10px] font-medium rounded-full bg-primary text-primary-foreground shadow-sm select-none">
{activeConnectorsCount > 99 ? "99+" : activeConnectorsCount} {activeConnectorsCount > 99 ? "99+" : activeConnectorsCount}
</span> </span>
)} )}

View file

@ -166,7 +166,7 @@ export function ChatShareButton({ thread, onVisibilityChange, className }: ChatS
<Button <Button
variant="outline" variant="outline"
size="icon" size="icon"
className="h-8 w-8 md:w-auto md:px-3 md:gap-2 relative bg-muted hover:bg-muted/80 border-0" className="h-8 w-8 md:w-auto md:px-3 md:gap-2 relative bg-muted hover:bg-muted/80 border-0 select-none"
> >
<CurrentIcon className="h-4 w-4" /> <CurrentIcon className="h-4 w-4" />
<span className="hidden md:inline text-sm">{buttonLabel}</span> <span className="hidden md:inline text-sm">{buttonLabel}</span>