fix: set inline style height and width for pictures

This commit is contained in:
Stevan Freeborn
2023-09-16 23:49:45 -05:00
parent 9ed896b9f2
commit e316ce9936
3 changed files with 3 additions and 0 deletions
+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}