avatar don't shrink

This commit is contained in:
Guillaume Dorce 2022-09-30 12:16:43 +02:00
parent 9fad765c50
commit 8558a7b715
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ const Avatar = ({ user }: any) => {
}
});
return <div className='avatar'><img src={avatar} alt="avatar" className='rounded-full w-16 h-16 cursor-pointer' /></div>;
return <div className='avatar shrink-0'><img src={avatar} alt="avatar" className='rounded-full w-16 h-16 cursor-pointer' /></div>;
};
export default Avatar;

View File

@ -1,4 +1,4 @@
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
import { useMutation, useQueryClient } from '@tanstack/react-query';
import { useState } from 'react';
import { FaPlus } from 'react-icons/fa';
import {newMessage} from '@controllers/MessageController';