Merge pull request #16 from RoootTheFox/dev

fix: pronoun pills rendering arbitrarily long pronouns
This commit is contained in:
7w1 authored and GitHub committed 2026-02-25 17:10:25 -06:00
commit c9d1f846fa
1 file changed
+3 -1
+3 -1
View File
@@ -721,7 +721,9 @@ function useMobileDoubleTap(callback: () => void, delay = 300) {
function PronounTag({ pronouns, tagColor }: { pronouns?: any[]; tagColor: string }) {
if (!pronouns || pronouns.length === 0) return null;
const display = pronouns.slice(0, 2).map((p) => p.summary).join('/');
const clamp = (str: string, len: number) => str.length > len ? `${str.slice(0, len)}...` : str;
const display = clamp(pronouns.slice(0, 2).map((p) => clamp(p.summary, 48)).join('/'), 128);
const hasMore = pronouns.length > 2;
return (