Skip to content

Commit

Permalink
Merge pull request #49 from StevanFreeborn/stevanfreeborn/fix/48-prof…
Browse files Browse the repository at this point in the history
…ile-images-on-posts-not-same-size

fix: #48 profile images maintain height
  • Loading branch information
StevanFreeborn authored Sep 17, 2023
2 parents 9ed896b + 6b7af33 commit 3305b02
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/DisplayPost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export default function DisplayPost({
<div className="flex w-full h-80 gap-4">
<div>
<Image
style={{ height: '40px', width: '40px' }}
alt="user profile image"
src={user.user.imageUrl}
width={40}
Expand Down
1 change: 1 addition & 0 deletions src/components/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default function Post({
<div className="flex-shrink-0">
<Link href={`/profile/${post.user.clerkUserId}`}>
<Image
style={{ height: '40px', width: '40px' }}
alt="user profile image"
src={post.user.clerkImageUrl}
width={40}
Expand Down
1 change: 1 addition & 0 deletions src/components/Reply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default function Reply({ post }: { post: PostWithUserDto }) {
<div>
<Link href={`/profile/${post.user.clerkUserId}`}>
<Image
style={{ height: '40px', width: '40px' }}
alt="user profile image"
src={post.user.clerkImageUrl}
width={40}
Expand Down
1 change: 1 addition & 0 deletions src/components/UserProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default function UserProfile({ user }: { user: UserDto }) {
<div className="flex items-center gap-4 -mb-[25px]">
<div className="flex-shrink-0">
<Image
style={{ height: '100px', width: '100px' }}
alt="user profile image"
src={user.clerkImageUrl}
width={100}
Expand Down

0 comments on commit 3305b02

Please sign in to comment.