Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Commit

Permalink
fix(ui): fix the hover effect on the packageItem's author area (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipMessa authored and juanpicado committed Sep 29, 2019
1 parent f61913c commit 2e50981
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
5 changes: 2 additions & 3 deletions src/components/Package/Package.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
IconButton,
OverviewItem,
PackageList,
PackageListItem,
PackageListItemText,
PackageTitle,
Published,
Expand Down Expand Up @@ -174,13 +173,13 @@ const Package: React.FC<PackageInterface> = ({
return (
<PackageList className={'package'}>
<ListItem alignItems={'flex-start'}>{renderPackageListItemText()}</ListItem>
<PackageListItem alignItems={'flex-start'} button={true}>
<ListItem alignItems={'flex-start'}>
{renderAuthorInfo()}
{renderVersionInfo()}
{renderPublishedInfo()}
{renderFileSize()}
{renderLicenseInfo()}
</PackageListItem>
</ListItem>
</PackageList>
);
};
Expand Down
11 changes: 4 additions & 7 deletions src/components/Package/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Link } from 'react-router-dom';

import Grid from '@material-ui/core/Grid';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemText from '@material-ui/core/ListItemText';
import MuiIconButton from '@material-ui/core/IconButton';
import Photo from '@material-ui/core/Avatar';
Expand Down Expand Up @@ -120,6 +119,10 @@ export const PackageList = styled(List)({
'&:hover': {
backgroundColor: colors.greyLight3,
},

'> :last-child': {
paddingTop: 0,
},
},
});

Expand All @@ -144,12 +147,6 @@ export const TagContainer = styled('span')`
}
`;

export const PackageListItem = styled(ListItem)({
'&&': {
paddingTop: 0,
},
});

export const PackageListItemText = styled(ListItemText)({
'&&': {
paddingRight: 0,
Expand Down

0 comments on commit 2e50981

Please sign in to comment.