Skip to content
Snippets Groups Projects
Commit b29dab1d authored by Lucas Eduardo Schoenfelder's avatar Lucas Eduardo Schoenfelder
Browse files

changed styling on ListItem so it works on notifications menu

parent e9a44360
No related branches found
No related tags found
4 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!39Update admin system,!32Homologa
...@@ -115,15 +115,15 @@ export default function ActivityListItem (props) { ...@@ -115,15 +115,15 @@ export default function ActivityListItem (props) {
}, [] ) }, [] )
return ( return (
<StyledListItem> <StyledListItem onMenuBar={props.onMenuBar}>
{ {
!props.onMenuBar && !props.onMenuBar &&
<> <>
<ListItemAvatar> <ListItemAvatar>
<Avatar alt='user avatar' src={props.avatar ? props.avatar : noAvatar}/> <Avatar alt='user avatar' src={props.avatar ? props.avatar : noAvatar}/>
</ListItemAvatar> </ListItemAvatar>
getNotificationIcon(activity.icon) {getNotificationIcon(activity.icon)}
</> </>
} }
...@@ -150,7 +150,7 @@ export default function ActivityListItem (props) { ...@@ -150,7 +150,7 @@ export default function ActivityListItem (props) {
} }
const StyledListItem = styled(ListItem)` const StyledListItem = styled(ListItem)`
padding : 20px 60px !important ; padding : ${props => props.onMenuBar ? "8px 16px !important" : "20px 60px !important"};
border-bottom : 1px solid #eee; border-bottom : 1px solid #eee;
display : flex; display : flex;
justify-content : flex-start; justify-content : flex-start;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment