From 8ac3259f41b535cd539ed4a9fe5c50ce27265c8c Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Fri, 20 Mar 2026 21:05:06 +0100 Subject: [PATCH] Add quotation marks to profile headline and capitalize suffix in profile details --- web/components/profile-about.tsx | 9 +++++---- web/components/profile/profile-header.tsx | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/web/components/profile-about.tsx b/web/components/profile-about.tsx index 1022611c..c313b59d 100644 --- a/web/components/profile-about.tsx +++ b/web/components/profile-about.tsx @@ -16,6 +16,7 @@ import {formatHeight, MeasurementSystem} from 'common/measurement-utils' import {Profile} from 'common/profiles/profile' import {Socials} from 'common/socials' import {UserActivity} from 'common/user' +import {capitalize} from 'lodash' import {Home} from 'lucide-react' import React, {ReactNode} from 'react' import {BiSolidDrink} from 'react-icons/bi' @@ -65,13 +66,13 @@ export function AboutRow(props: { t: t, }) } - if (suffix) { - formattedText += formattedText ? ` (${suffix})` : suffix - } return (
{icon}
-
{formattedText}
+ +
{formattedText}
+ {suffix &&
"{capitalize(suffix)}"
} +
) } diff --git a/web/components/profile/profile-header.tsx b/web/components/profile/profile-header.tsx index 298dc0ec..3a07b999 100644 --- a/web/components/profile/profile-header.tsx +++ b/web/components/profile/profile-header.tsx @@ -246,7 +246,7 @@ export default function ProfileHeader(props: { /> {profile.headline && (
- {profile.headline} + "{profile.headline}"
)}