Skip to content

Commit fba8793

Browse files
committed
spacing
1 parent 5ce27c3 commit fba8793

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

src/pages/common/UserNameTag/UserNameTag.tsx

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,21 @@ export const UserNameTag = (props: IProps) => {
1515

1616
return (
1717
<Flex sx={{ flexDirection: 'column' }}>
18-
<Flex sx={{ alignItems: 'center' }}>
19-
<Flex sx={{ alignItems: 'center' }}>
20-
<Username user={author} sx={{ position: 'relative' }} />
21-
{createdAt && (
22-
<Text
23-
variant="auxiliary"
24-
sx={{
25-
marginTop: 2,
26-
marginBottom: 2,
27-
}}
28-
>
29-
|{' '}
18+
<Flex sx={{ alignItems: 'center', gap: 1 }}>
19+
<Username user={author} sx={{ position: 'relative' }} />
20+
{createdAt && (
21+
<>
22+
<Text variant="auxiliary">|</Text>
23+
<Text variant="auxiliary">
3024
<DisplayDate
3125
publishedAction={publishedAction}
3226
createdAt={createdAt}
3327
publishedAt={publishedAt}
3428
modifiedAt={modifiedAt}
3529
/>
3630
</Text>
37-
)}
38-
</Flex>
31+
</>
32+
)}
3933
</Flex>
4034
</Flex>
4135
);

0 commit comments

Comments
 (0)