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; 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 { useState } from 'react';
import { FaPlus } from 'react-icons/fa'; import { FaPlus } from 'react-icons/fa';
import {newMessage} from '@controllers/MessageController'; import {newMessage} from '@controllers/MessageController';

View File

@ -35,7 +35,7 @@ const EditMessage = ({
return; return;
} }
toast.success('Message édité avec succès!', { toast.success('Message édité avec succès !', {
position: 'top-right', position: 'top-right',
autoClose: 5000, autoClose: 5000,
hideProgressBar: false, hideProgressBar: false,