diff --git a/src/app/components/user-profile/UserRoomProfile.tsx b/src/app/components/user-profile/UserRoomProfile.tsx
index 3d103ce8..5a32b5a9 100644
--- a/src/app/components/user-profile/UserRoomProfile.tsx
+++ b/src/app/components/user-profile/UserRoomProfile.tsx
@@ -63,7 +63,7 @@ function UserExtendedSection({
const clamp = (str: string, len: number) => (str.length > len ? `${str.slice(0, len)}...` : str);
const [showMore, setShowMore] = useState(false);
- const pronouns = profile.pronouns?.map((p: any) => clamp(p.summary, 20)).join('/');
+ const pronouns = profile.pronouns?.map((p: any) => clamp(p.summary, 16)).join(', ');
const timezone = profile.timezone ? clamp(profile.timezone, 64) : null;
const localTime = timezone
? new Intl.DateTimeFormat([], {
diff --git a/src/app/features/room/message/Message.tsx b/src/app/features/room/message/Message.tsx
index ff7882aa..c1bc8041 100644
--- a/src/app/features/room/message/Message.tsx
+++ b/src/app/features/room/message/Message.tsx
@@ -249,20 +249,7 @@ function useMobileDoubleTap(callback: () => void, delay = 300) {
);
}
-function PronounTag({ pronouns, tagColor }: { pronouns?: any[]; tagColor: string }) {
- if (!pronouns || pronouns.length === 0) return null;
-
- 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;
-
+function PronounPill({ summary, tagColor }: { summary: string; tagColor: string }) {
return (
- {display}
- {hasMore ? '...' : ''}
+ {summary}
);
}
+function PronounTag({ pronouns, tagColor }: { pronouns?: any[]; tagColor: string }) {
+ if (!pronouns || pronouns.length === 0) return null;
+
+ const clamp = (str: string, len: number) => (str.length > len ? `${str.slice(0, len)}...` : str);
+
+ const display = pronouns
+ .slice(0, 3)
+ .map((p) => );
+
+ if (pronouns.length > 3) {
+ display.push();
+ }
+ return display;
+}
+
function MessageInternal(
{
className,
diff --git a/src/app/features/settings/account/PronounEditor.tsx b/src/app/features/settings/account/PronounEditor.tsx
index 8cab2db2..b138c8f2 100644
--- a/src/app/features/settings/account/PronounEditor.tsx
+++ b/src/app/features/settings/account/PronounEditor.tsx
@@ -5,6 +5,7 @@ import { SettingTile } from '$components/setting-tile';
type PronounSet = {
summary: string;
language?: string;
+ grammatical_gender?: string;
};
type PronounEditorProps = {
@@ -13,7 +14,7 @@ type PronounEditorProps = {
};
export function PronounEditor({ current, onSave }: PronounEditorProps) {
- const initialString = current.map((p) => p.summary).join('/');
+ const initialString = current.map((p) => p.summary).join(', ');
const [val, setVal] = useState(initialString);
useEffect(() => setVal(initialString), [initialString]);
@@ -22,10 +23,10 @@ export function PronounEditor({ current, onSave }: PronounEditorProps) {
if (val === initialString) return;
const safeVal = val.slice(0, 128);
const next = safeVal
- .split('/')
+ .split(',')
.map((s) => s.trim())
.filter(Boolean)
- .map((s) => ({ summary: s.slice(0, 16) }));
+ .map((s) => ({ summary: s.slice(0, 16), language: "en" }));
onSave(next);
};
@@ -36,7 +37,7 @@ export function PronounEditor({ current, onSave }: PronounEditorProps) {
return (