From a9159f661393d6b1d295a136fcfe86d65cad8880 Mon Sep 17 00:00:00 2001 From: Eemaan Amir <57627710+eemaanamir@users.noreply.github.com> Date: Tue, 1 Jul 2025 13:58:17 +0500 Subject: [PATCH] fix: fixed font sizing issue after applying elm theme (#1228) --- src/profile-v2/DateJoined.jsx | 4 +- src/profile-v2/ProfilePage.jsx | 8 +- .../__snapshots__/ProfilePage.test.jsx.snap | 88 +++++++++---------- src/profile-v2/forms/Bio.jsx | 8 +- src/profile-v2/forms/Country.jsx | 8 +- src/profile-v2/forms/Education.jsx | 8 +- src/profile-v2/forms/Name.jsx | 12 +-- src/profile-v2/forms/PreferredLanguage.jsx | 8 +- src/profile-v2/forms/SocialLinks.jsx | 8 +- src/profile-v2/index.scss | 19 +++- 10 files changed, 92 insertions(+), 79 deletions(-) diff --git a/src/profile-v2/DateJoined.jsx b/src/profile-v2/DateJoined.jsx index 5b02d4b..1921ee5 100644 --- a/src/profile-v2/DateJoined.jsx +++ b/src/profile-v2/DateJoined.jsx @@ -6,13 +6,13 @@ const DateJoined = ({ date }) => { if (!date) { return null; } return ( - + , + year: , }} /> diff --git a/src/profile-v2/ProfilePage.jsx b/src/profile-v2/ProfilePage.jsx index 2411755..dda1b65 100644 --- a/src/profile-v2/ProfilePage.jsx +++ b/src/profile-v2/ProfilePage.jsx @@ -219,7 +219,7 @@ const ProfilePage = ({ params }) => { : 'justify-content-start align-items-start', ])} > -

+

{params.username}

{isBlockVisible(name) && ( @@ -293,7 +293,7 @@ const ProfilePage = ({ params }) => { >
-

+

{intl.formatMessage(messages['profile.username'])}

{
-

+

{params.username} -
+
{isBlockVisible(name) && ( Renders correctly in various states successfully redire class="col h-100 w-100 m-0 p-0 justify-content-start align-items-start" >

staffTest

@@ -123,7 +123,7 @@ exports[` Renders correctly in various states successfully redire class="row m-0 pb-1.5 align-items-center" >

Username @@ -142,11 +142,11 @@ exports[` Renders correctly in various states successfully redire /> -

staffTest -

+
Renders correctly in various states viewing other profi class="col h-100 w-100 m-0 p-0 justify-content-start align-items-start" >

verified

@@ -223,11 +223,11 @@ exports[` Renders correctly in various states viewing other profi class="row pt-2 m-0 g-1rem" > Member since 2017 @@ -278,7 +278,7 @@ exports[` Renders correctly in various states viewing other profi class="row m-0 pb-1.5 align-items-center" >

Username @@ -297,11 +297,11 @@ exports[` Renders correctly in various states viewing other profi />

-

verified -

+
Renders correctly in various states viewing other profi class="row m-0 pb-1.5 align-items-center" >

Full name @@ -360,7 +360,7 @@ exports[` Renders correctly in various states viewing other profi style="padding: .1px 0px;" >

Country @@ -393,7 +393,7 @@ exports[` Renders correctly in various states viewing other profi style="padding: .1px 0px;" >

Primary language spoken @@ -426,7 +426,7 @@ exports[` Renders correctly in various states viewing other profi style="padding: .1px 0px;" >

Education @@ -463,7 +463,7 @@ exports[` Renders correctly in various states viewing other profi style="padding: .1px 0px;" >

Bio @@ -501,7 +501,7 @@ exports[` Renders correctly in various states viewing other profi class="pt-40px" >

X @@ -631,7 +631,7 @@ exports[` Renders correctly in various states viewing own profile class="col h-100 w-100 m-0 p-0 justify-content-start align-items-start" >

staff

@@ -644,11 +644,11 @@ exports[` Renders correctly in various states viewing own profile class="row pt-2 m-0 g-1rem" > Member since 2017 @@ -718,7 +718,7 @@ exports[` Renders correctly in various states viewing own profile class="row m-0 pb-1.5 align-items-center" >

Username @@ -737,11 +737,11 @@ exports[` Renders correctly in various states viewing own profile />

-

staff -

+
Renders correctly in various states viewing own profile class="row m-0 pb-1.5 align-items-center" >

Full name @@ -819,7 +819,7 @@ exports[` Renders correctly in various states viewing own profile style="padding: .1px 0px;" >

Country @@ -871,7 +871,7 @@ exports[` Renders correctly in various states viewing own profile style="padding: .1px 0px;" >

Primary language spoken @@ -923,7 +923,7 @@ exports[` Renders correctly in various states viewing own profile style="padding: .1px 0px;" >

Education @@ -979,7 +979,7 @@ exports[` Renders correctly in various states viewing own profile style="padding: .1px 0px;" >

Bio @@ -1036,7 +1036,7 @@ exports[` Renders correctly in various states viewing own profile class="pt-40px" >

X @@ -1088,7 +1088,7 @@ exports[` Renders correctly in various states viewing own profile class="pt-40px" >

Facebook @@ -1140,7 +1140,7 @@ exports[` Renders correctly in various states viewing own profile class="pt-40px" >

LinkedIn @@ -1374,7 +1374,7 @@ exports[` Renders correctly in various states without credentials class="col h-100 w-100 m-0 p-0 justify-content-start align-items-start" >

staff

@@ -1387,11 +1387,11 @@ exports[` Renders correctly in various states without credentials class="row pt-2 m-0 g-1rem" > Member since 2017 @@ -1452,7 +1452,7 @@ exports[` Renders correctly in various states without credentials class="row m-0 pb-1.5 align-items-center" >

Username @@ -1471,11 +1471,11 @@ exports[` Renders correctly in various states without credentials />

-

staff -

+
Renders correctly in various states without credentials class="row m-0 pb-1.5 align-items-center" >

Full name @@ -1553,7 +1553,7 @@ exports[` Renders correctly in various states without credentials style="padding: .1px 0px;" >

Country @@ -1605,7 +1605,7 @@ exports[` Renders correctly in various states without credentials style="padding: .1px 0px;" >

Primary language spoken @@ -1657,7 +1657,7 @@ exports[` Renders correctly in various states without credentials style="padding: .1px 0px;" >

Education @@ -1713,7 +1713,7 @@ exports[` Renders correctly in various states without credentials style="padding: .1px 0px;" >

Bio @@ -1770,7 +1770,7 @@ exports[` Renders correctly in various states without credentials class="pt-40px" >

X @@ -1822,7 +1822,7 @@ exports[` Renders correctly in various states without credentials class="pt-40px" >

Facebook @@ -1874,7 +1874,7 @@ exports[` Renders correctly in various states without credentials class="pt-40px" >

LinkedIn diff --git a/src/profile-v2/forms/Bio.jsx b/src/profile-v2/forms/Bio.jsx index 797bbb6..ed7422b 100644 --- a/src/profile-v2/forms/Bio.jsx +++ b/src/profile-v2/forms/Bio.jsx @@ -57,7 +57,7 @@ const Bio = ({ className="m-0 pb-3" isInvalid={error !== null} > -

+

{intl.formatMessage(messages['profile.bio.about.me'])}