From 40d578e099d2896745eed4653e03f3e37d2ab692 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 12 Nov 2017 15:37:39 -0800 Subject: [PATCH] Possible fix for non rendering issue in prod --- app/components/Collaborators/Collaborators.js | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/app/components/Collaborators/Collaborators.js b/app/components/Collaborators/Collaborators.js index 42b5f0d97..d7eaf16e2 100644 --- a/app/components/Collaborators/Collaborators.js +++ b/app/components/Collaborators/Collaborators.js @@ -29,7 +29,9 @@ const Collaborators = ({ document }: Props) => { {collaborators.map(user => ( - + + + ))} @@ -41,17 +43,19 @@ const StyledTooltip = styled(Tooltip)` flex-direction: row-reverse; `; -const Avatars = styled(Flex)` - align-items: center; - flex-direction: row-reverse; +const AvatarWrapper = styled.div` + width: 24px; + height: 24px; + margin-right: -10px; - ${Avatar} & { - margin-right: -10px; - } - - ${Avatar} &:first-child { + &:first-child { margin-right: 0; } `; +const Avatars = styled(Flex)` + align-items: center; + flex-direction: row-reverse; +`; + export default Collaborators;