Merge pull request #49 from StevanFreeborn/stevanfreeborn/fix/48-profile-images-on-posts-not-same-size

fix: #48 profile images maintain height
This commit is contained in:
Stevan Freeborn
2023-09-16 23:52:08 -05:00
committed by GitHub
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -78,6 +78,7 @@ export default function DisplayPost({
<div className="flex w-full h-80 gap-4"> <div className="flex w-full h-80 gap-4">
<div> <div>
<Image <Image
style={{ height: '40px', width: '40px' }}
alt="user profile image" alt="user profile image"
src={user.user.imageUrl} src={user.user.imageUrl}
width={40} width={40}
+1
View File
@@ -48,6 +48,7 @@ export default function Post({
<div className="flex-shrink-0"> <div className="flex-shrink-0">
<Link href={`/profile/${post.user.clerkUserId}`}> <Link href={`/profile/${post.user.clerkUserId}`}>
<Image <Image
style={{ height: '40px', width: '40px' }}
alt="user profile image" alt="user profile image"
src={post.user.clerkImageUrl} src={post.user.clerkImageUrl}
width={40} width={40}
+1
View File
@@ -20,6 +20,7 @@ export default function Reply({ post }: { post: PostWithUserDto }) {
<div> <div>
<Link href={`/profile/${post.user.clerkUserId}`}> <Link href={`/profile/${post.user.clerkUserId}`}>
<Image <Image
style={{ height: '40px', width: '40px' }}
alt="user profile image" alt="user profile image"
src={post.user.clerkImageUrl} src={post.user.clerkImageUrl}
width={40} width={40}
+1
View File
@@ -54,6 +54,7 @@ export default function UserProfile({ user }: { user: UserDto }) {
<div className="flex items-center gap-4 -mb-[25px]"> <div className="flex items-center gap-4 -mb-[25px]">
<div className="flex-shrink-0"> <div className="flex-shrink-0">
<Image <Image
style={{ height: '100px', width: '100px' }}
alt="user profile image" alt="user profile image"
src={user.clerkImageUrl} src={user.clerkImageUrl}
width={100} width={100}