diff --git a/app/components/Collaborators.js b/app/components/Collaborators.js index b6d066ba6..147a0f7e6 100644 --- a/app/components/Collaborators.js +++ b/app/components/Collaborators.js @@ -61,13 +61,13 @@ class Collaborators extends React.Component { {overflow > 0 && +{overflow}} {mostRecentViewers.map(({ lastViewedAt, user }) => ( - + {user.name}
viewed {distanceInWordsToNow(new Date(lastViewedAt))} ago - +
} placement="bottom" > @@ -78,7 +78,7 @@ class Collaborators extends React.Component { size={32} /> -
+ { ))} {collaborators.map(user => ( - + {user.name}
{createdAt === updatedAt ? 'published' : 'updated'}{' '} {updatedBy.id === user.id && `${distanceInWordsToNow(new Date(updatedAt))} ago`} - +
} placement="bottom" > @@ -107,7 +107,7 @@ class Collaborators extends React.Component { size={32} /> -
+ { } } -const TooltipCentered = styled.div` +const Centered = styled.div` text-align: center; `; -const AvatarPile = styled(Tooltip)` +const Viewer = styled.div` + width: 32px; + height: 32px; + opacity: 0.75; margin-right: -8px; &:first-child { @@ -132,15 +135,14 @@ const AvatarPile = styled(Tooltip)` } `; -const Viewer = styled.div` - width: 32px; - height: 32px; - opacity: 0.75; -`; - const Collaborator = styled.div` width: 32px; height: 32px; + margin-right: -8px; + + &:first-child { + margin-right: 0; + } `; const More = styled.div`