mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-10-26 00:56:09 +02:00
Fix avatar images in contributor table
This commit is contained in:
@@ -22,6 +22,7 @@ type Props = {
|
||||
alt: string;
|
||||
title?: string;
|
||||
className?: string;
|
||||
crossOrigin?: "anonymous" | "";
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -37,8 +38,8 @@ class Image extends React.Component<Props> {
|
||||
};
|
||||
|
||||
render() {
|
||||
const { alt, title, className } = this.props;
|
||||
return <img className={className} src={this.createImageSrc()} alt={alt} title={title} />;
|
||||
const { alt, title, className, crossOrigin } = this.props;
|
||||
return <img className={className} src={this.createImageSrc()} alt={alt} title={title} crossOrigin={crossOrigin} />;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ const Contributor: FC<{ person: Person }> = ({ person }) => {
|
||||
if (avatar) {
|
||||
prefix = (
|
||||
<>
|
||||
<ContributorAvatar src={avatar} alt={person.name} />{" "}
|
||||
<ContributorAvatar src={avatar} alt={person.name} crossOrigin="anonymous" />{" "}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user