1
0
mirror of https://github.com/SomboChea/ui synced 2024-11-28 00:44:30 +07:00

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)({
borderRadius: '0px',
padding: '0',
img: {
backgroundColor: 'transparent',
},
});
export enum DependencyManager {

View File

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