Skip to content

Commit

Permalink
Merge remote-tracking branch 'mayTkhin24/FixLabel' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
aapeliv committed Dec 10, 2024
2 parents 61a0fc2 + 8c232dc commit a65b7c5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/web/components/LabelAndText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const useStyles = makeStyles((theme) => ({
root: {
display: "flex",
marginTop: theme.spacing(0.5),
alignItems: "flex-start", // Ensures the label aligns with the top of multi-line text
},
flexItem: {
flex: "1 1 50%",
Expand Down
15 changes: 11 additions & 4 deletions app/web/features/profile/view/userLabels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ const useStyles = makeStyles((theme) => ({
margin: theme.spacing(0.5),
alignSelf: "center",
},
container: {
display: "flex",
flexWrap: "wrap",
alignItems: "center",
},
}));

const AgeAndGenderRenderer = ({ user }: Props) => {
Expand Down Expand Up @@ -180,13 +185,14 @@ const AgeAndGenderRenderer = ({ user }: Props) => {
}
};
return (
<>
<div className={useStyles().container}>
<span>{age}</span>
{getBirthdateVerificationIcon(birthdateVerificationStatus)} /&nbsp;
{getBirthdateVerificationIcon(birthdateVerificationStatus)}
<span>/&nbsp;</span>
<span>{gender}</span>
{getGenderVerificationIcon(genderVerificationStatus)}
<span> {pronouns && ` (${pronouns})`}</span>
</>
{pronouns && <span>({pronouns.replace(/\s+/g, "")})</span>}
</div>
);
};

Expand Down Expand Up @@ -248,3 +254,4 @@ export const RemainingAboutLabels = ({ user }: Props) => {
</>
);
};

0 comments on commit a65b7c5

Please sign in to comment.