Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: custom-avatar-css-issues #714

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/commonComponents/EcosystemProfileCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { RoleTablet } from '../components/Ecosystem/Dashboard'
import CustomSpinner from '../components/CustomSpinner';
import { pathRoutes } from '../config/pathRoutes';
import { EmptyListMessage } from '../components/EmptyListComponent';
import React from 'react';



Expand Down Expand Up @@ -86,9 +87,13 @@ const EcosystemProfileCard = ({getEndorsementListData}:IEndorsement) => {
>
<div className="mr-4">
{ecosystemDetails?.logoUrl ? (
<CustomAvatar size="80px" textSizeRatio={2.5} round src={ecosystemDetails?.logoUrl} />
<CustomAvatar className='text-violet11 leading-1 flex h-full w-full items-center justify-center bg-white text-[15px] font-medium'
size="80px" textSizeRatio={2.5}
round src={ecosystemDetails?.logoUrl} />
) : (
<CustomAvatar size="80px" textSizeRatio={2.5} round name={ecosystemDetails?.name} />
<CustomAvatar className='text-violet11 leading-1 flex h-full w-full items-center justify-center bg-white text-[15px] font-medium'
size="80px" textSizeRatio={2.5}
round name={ecosystemDetails?.name} />
)}
</div>

Expand Down
4 changes: 2 additions & 2 deletions src/components/EcosystemInvite/EcoInvitationList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const EcoInvitationList = (props: InvitationProps) => {
<div className="flex space-x-2">
<div className="mr-2">
{logoUrl ? (
<CustomAvatar size="60px" src={logoUrl} />
<CustomAvatar className='text-violet11 leading-1 flex h-full w-full items-center justify-center bg-white text-[15px] font-medium'round size="80px" src={logoUrl} />
) : (
<CustomAvatar size="70px" name={name} />
<CustomAvatar className='text-violet11 leading-1 flex h-full w-full items-center justify-center bg-white text-[15px] font-medium' round size="80px" name={name} />
)}
</div>

Expand Down
10 changes: 6 additions & 4 deletions src/components/organization/invitations/ReceivedInvitations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,16 @@ const ReceivedInvitations = () => {
<div>
<div className="mr-2 border border-gray-200 dark:border-gray-700">
{invitation.organisation.logoUrl ? (
<CustomAvatar
size="60px"
<CustomAvatar className='text-violet11 leading-1 flex h-full w-full items-center justify-center bg-white text-[15px] font-medium'
size="80px" textSizeRatio={2.5}
round
src={invitation?.organisation?.logoUrl}
/>
) : (
<CustomAvatar
size="70px"
<CustomAvatar className='text-violet11 leading-1 flex h-full w-full items-center justify-center bg-white text-[15px] font-medium'
size="80px" textSizeRatio={2.5}
name={invitation?.organisation?.name}
round
/>
)}
</div>
Expand Down
Loading