Skip to content

Commit

Permalink
profile flexing
Browse files Browse the repository at this point in the history
  • Loading branch information
daxaxelrod committed Dec 31, 2023
1 parent c26103d commit a1f9d42
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
4 changes: 1 addition & 3 deletions frontend/src/app/components/users/PublicProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ export default function PublicProfile({}) {
marginBottom: ".75rem",
}}
>
<Col span={4}>
<Flex justify="space-between" flex={1} wrap="wrap">
<UserLargeImage user={user} editable={isSelf} />
</Col>
<Flex justify="space-between" flex={1}>
<Flex align="middle" flex={8}>
<UserHeader user={user} />
</Flex>
Expand Down
7 changes: 6 additions & 1 deletion frontend/src/app/components/users/profile/UserHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ const { Title, Paragraph } = Typography;

export default function UserHeader({ user }: { user: User }) {
return (
<div>
<div
style={{
marginLeft: "2rem",
minWidth: "10rem",
}}
>
<Title style={{ marginBottom: ".25rem" }}>
{user?.first_name} {user?.last_name}
</Title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ export default function UserOpenInsureRating({ user }: { user: User }) {
</Text>
<Title
level={3}
style={{ marginTop: 0, marginBottom: "1.5rem" }}
style={{
marginTop: 0,
marginBottom: "1.5rem",
wordBreak: "keep-all",
}}
>
{scoreLeaderText}
</Title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ export default function RatingDetailsBrief({
width: "100%",
flexWrap: "wrap",
}}
wrap
>
<Space size={"large"}>
<Space size={"large"} wrap>
<Statistic
title="Activity"
value={getRatingGrade(reputation.components.activity)}
Expand Down

0 comments on commit a1f9d42

Please sign in to comment.