diff --git a/resources/js/components/bio-text.tsx b/resources/js/components/bio-text.tsx index 6985f4b5c..7e0d97912 100644 --- a/resources/js/components/bio-text.tsx +++ b/resources/js/components/bio-text.tsx @@ -4,24 +4,37 @@ import { mentionPattern } from '@/lib/mentions'; import { show } from '@/routes/user'; const mentionClassName = - 'inline-flex h-[1.55em] items-center gap-[0.3em] rounded-md border bg-muted pr-[0.55em] pl-[calc(0.2em-1px)] align-[-0.3em] text-[0.93em] font-medium whitespace-nowrap text-foreground transition-colors hover:border-primary/45 hover:bg-primary-soft hover:text-primary-hover'; + 'inline-flex h-[1.55em] max-w-full items-baseline gap-[0.2em] rounded-[0.3em] border bg-muted px-[calc(0.2em-1px)] align-baseline text-[0.93em] font-medium whitespace-nowrap text-inherit transition-colors hover:border-primary/45 hover:bg-primary-soft hover:text-primary-hover'; // Like a shortened URL, the "@" stays in the text, so copying the bio keeps the mention. function MentionContent({ handle }: { handle: string }) { return ( <> - {/* A handle GitHub doesn't know has no avatar, so the broken image leaves just this placeholder. */} - + {/* A CSS symbol keeps the fallback out of copied bio text. */} + - + @ {handle}