Skip to content

Commit 6abc12d

Browse files
committed
MP-234 more mobile view fixes
1 parent 0608269 commit 6abc12d

File tree

6 files changed

+21
-23
lines changed

6 files changed

+21
-23
lines changed

src/apps/profiles/src/member-profile/about-me/AboutMe.module.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
text-align: center;
99
}
1010

11-
:global(.body-large) {
12-
font-style: italic;
13-
}
14-
1511
.wizzardWrap {
1612
display: flex;
1713
align-items: center;

src/apps/profiles/src/member-profile/about-me/AboutMe.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const AboutMe: FC<AboutMeProps> = (props: AboutMeProps) => {
7777
<MemberRatingCard profile={props.profile} />
7878

7979
<div className={classNames(styles.wizzardWrap, hasEmptyDescription && styles.emptyDesc)}>
80-
<p className='body-large'>{memberTitleTrait?.profileSelfTitle}</p>
80+
<p className='body-main-medium'>{memberTitleTrait?.profileSelfTitle}</p>
8181
{canEdit && !hasEmptyDescription && (
8282
<EditMemberPropertyBtn
8383
onClick={handleEditClick}

src/apps/profiles/src/member-profile/community-awards/CommunityAwards.module.scss

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,12 @@
44
display: flex;
55
flex-direction: column;
66
margin-top: $sp-8;
7+
padding-bottom: $sp-4;
78

89
.title {
910
display: flex;
10-
justify-content: space-between;
11+
justify-content: flex-end;
1112
align-items: center;
12-
margin-bottom: $sp-10;
13-
14-
@include ltelg {
15-
margin-bottom: $sp-4;
16-
}
17-
18-
.viewAllLink {
19-
text-transform: uppercase;
20-
color: $turq-160;
21-
font-weight: $font-weight-bold;
22-
font-size: 14px;
23-
}
2413
}
2514

2615
.badges {
@@ -47,6 +36,7 @@
4736
@include ltelg {
4837
padding-bottom: 0;
4938
padding-left: $sp-2;
39+
min-width: 100%;
5040
}
5141

5242
&:hover {

src/apps/profiles/src/member-profile/community-awards/CommunityAwards.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Link } from 'react-router-dom'
33
import { bind } from 'lodash'
44

55
import { useMemberBadges, UserBadge, UserBadgesResponse, UserProfile } from '~/libs/core'
6+
import { Button } from '~/libs/ui'
67

78
import { MemberBadgeModal } from '../../components'
89

@@ -29,8 +30,13 @@ const CommunityAwards: FC<CommunityAwardsProps> = (props: CommunityAwardsProps)
2930
return memberBadges && memberBadges.count ? (
3031
<div className={styles.container}>
3132
<div className={styles.title}>
32-
<h4>Community Awards & Honors</h4>
33-
<Link to='badges' className={styles.viewAllLink}>View all badges</Link>
33+
<Link to='badges'>
34+
<Button
35+
label='View all badges'
36+
link
37+
variant='linkblue'
38+
/>
39+
</Link>
3440
</div>
3541

3642
<div className={styles.badges}>

src/apps/profiles/src/member-profile/page-layout/ProfilePageLayout.module.scss

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,19 @@
4040
.profileOuter {
4141
margin-top: 130px;
4242

43+
.profileInner {
44+
width: 100%;
45+
}
46+
4347
.profileInfoWrap {
4448
display: grid;
4549
grid-template-columns: 300px 1fr;
4650
grid-gap: $sp-15;
4751
margin-bottom: $sp-13;
4852

4953
@include ltelg {
50-
grid-template-columns: 1fr;
51-
gap: 0;
54+
display: flex;
55+
flex-direction: column;
5256
}
5357

5458
.profileInfoLeft {
@@ -71,6 +75,7 @@
7175
display: flex;
7276
flex-direction: column;
7377
margin-top: -275px;
78+
z-index: 1;
7479

7580
@include ltelg {
7681
margin-top: $sp-8;
@@ -107,7 +112,7 @@
107112

108113
.sectionWrap {
109114
background-color: $tc-white;
110-
padding: $sp-8 $sp-8 0;
115+
padding: $sp-8 $sp-8 $sp-4;
111116
margin-bottom: $sp-8;
112117
border-radius: 16px;
113118

src/apps/profiles/src/member-profile/page-layout/ProfilePageLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const ProfilePageLayout: FC<ProfilePageLayoutProps> = (props: ProfilePageLayoutP
4444

4545
<ContentLayout
4646
outerClass={styles.profileOuter}
47+
innerClass={styles.profileInner}
4748
>
4849
<div className={styles.profileInfoWrap}>
4950
<div className={styles.profileInfoLeft}>

0 commit comments

Comments
 (0)