Remove company avatar show page hover effect (#1857)

- remove company avatar show page hover effect
This commit is contained in:
brendanlaschke 2023-10-04 15:49:25 +02:00 committed by GitHub
parent 27eab82f19
commit 1e402aca5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -92,7 +92,7 @@ export const ShowPageSummaryCard = ({
if (e.target.files) onUploadPicture?.(e.target.files[0]);
};
const handleAvatarClick = () => {
if (onUploadPicture) inputFileRef?.current?.click?.();
inputFileRef?.current?.click?.();
};
return (
@ -100,7 +100,7 @@ export const ShowPageSummaryCard = ({
<StyledAvatarWrapper>
<Avatar
avatarUrl={logoOrAvatar}
onClick={handleAvatarClick}
onClick={onUploadPicture ? handleAvatarClick : undefined}
size="xl"
colorId={id}
placeholder={title}

View File

@ -83,7 +83,8 @@ const StyledAvatar = styled.div<AvatarProps & { colorId: string }>`
}};
&:hover {
box-shadow: 0 0 0 4px ${({ theme }) => theme.background.transparent.light};
box-shadow: ${({ theme, onClick }) =>
onClick ? '0 0 0 4px ' + theme.background.transparent.light : 'unset'};
}
`;