Skip to content

Commit 14b10df

Browse files
committed
fix: ui
1 parent a202e85 commit 14b10df

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

webviews/components/Comment.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const Header = styled.div`
1515
align-items: center;
1616
border: 1px solid var(--vscode-list-inactiveSelectionBackground);
1717
background: var(--vscode-list-inactiveSelectionBackground);
18+
padding: 5px 10px;
1819
`;
1920
const AuthorLinkWrap = styled.div`
2021
margin-left: 5px;
@@ -25,7 +26,7 @@ const Body = styled.div`
2526
border-top: none;
2627
`;
2728
const Time = styled.div`
28-
margin-left: 20px;
29+
margin-left: 15px;
2930
`;
3031

3132
const ChildComment = styled.div`

webviews/components/User.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@ import * as React from 'react';
22
import styled from 'styled-components';
33
import { IMRDetailMR } from 'src/typings/respResult';
44

5+
const Link = styled.a`
6+
position: relative;
7+
top: 1px;
8+
`;
59
const AvatarImg = styled.img`
610
width: 24px;
711
height: 24px;
12+
border-radius: 50%;
813
`;
914

1015
export const Avatar = ({ for: author }: { for: Partial<IMRDetailMR['author']> }) => (
11-
<a href={author.avatar}>
16+
<Link href={author.avatar}>
1217
<AvatarImg src={author.avatar} alt='' />
13-
</a>
18+
</Link>
1419
);
1520

1621
export const AuthorLink = ({ for: author }: { for: IMRDetailMR['author'] }) => (

0 commit comments

Comments
 (0)