fix: remove background from styled Avatar components - closes #371 (#398)

This commit is contained in:
Daniel Ruf 2019-12-28 09:33:00 +01:00 committed by Juan Picado @jotadeveloper
parent 797c2381e4
commit 787dda4a01
2 changed files with 12 additions and 1 deletions

View File

@ -26,6 +26,9 @@ const InstallListItemText = styled(ListItemText)({
const PackageMangerAvatar = styled(Avatar)({ const PackageMangerAvatar = styled(Avatar)({
borderRadius: '0px', borderRadius: '0px',
padding: '0', padding: '0',
img: {
backgroundColor: 'transparent',
},
}); });
export enum DependencyManager { export enum DependencyManager {

View File

@ -34,6 +34,14 @@ const RepositoryListItemText = styled(ListItemText)({
margin: 0, margin: 0,
}); });
const RepositoryAvatar = styled(Avatar)({
borderRadius: '0px',
padding: '0',
img: {
backgroundColor: 'transparent',
},
});
const Repository: React.FC = () => { const Repository: React.FC = () => {
const detailContext = React.useContext(DetailContext); const detailContext = React.useContext(DetailContext);
@ -58,7 +66,7 @@ const Repository: React.FC = () => {
return ( return (
<List dense={true} subheader={<StyledText variant="subtitle1">{'Repository'}</StyledText>}> <List dense={true} subheader={<StyledText variant="subtitle1">{'Repository'}</StyledText>}>
<RepositoryListItem button={true}> <RepositoryListItem button={true}>
<Avatar src={git} /> <RepositoryAvatar src={git} />
<RepositoryListItemText <RepositoryListItemText
primary={ primary={
<CopyToClipBoard text={repositoryURL}> <CopyToClipBoard text={repositoryURL}>