Skip to content

Commit eb9bddd

Browse files
committed
blame tweaks
1 parent 8139649 commit eb9bddd

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

routers/web/repo/blame.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ func renderBlame(ctx *context.Context, blameParts []*git.BlamePart, commitNames
278278

279279
var avatar string
280280
if commit.User != nil {
281-
avatar = string(avatarUtils.Avatar(commit.User, 18, "gt-mr-3"))
281+
avatar = string(avatarUtils.Avatar(commit.User, 18))
282282
} else {
283283
avatar = string(avatarUtils.AvatarByEmail(commit.Author.Email, commit.Author.Name, 18, "gt-mr-3"))
284284
}

web_src/css/base.css

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,14 +1422,13 @@ a.ui.active.label:hover {
14221422
}
14231423

14241424
.lines-blame-btn {
1425-
padding: 1px 3px;
1425+
padding: 0 4px;
14261426
display: flex;
14271427
justify-content: center;
14281428
}
14291429

14301430
.lines-num {
1431-
padding-left: 10px;
1432-
padding-right: 10px;
1431+
padding: 0 8px;
14331432
text-align: right !important;
14341433
color: var(--color-text-light-2);
14351434
width: 1%;
@@ -1535,7 +1534,7 @@ a.ui.active.label:hover {
15351534
width: 350px;
15361535
max-width: 350px;
15371536
display: block;
1538-
padding: 1px 0 1px 10px;
1537+
padding: 0 0 0 6px;
15391538
line-height: 20px;
15401539
box-sizing: content-box;
15411540
}
@@ -1557,11 +1556,10 @@ a.ui.active.label:hover {
15571556
flex-shrink: 0;
15581557
}
15591558

1560-
.lines-commit .ui.avatar {
1561-
height: 18px;
1562-
width: 18px;
1563-
display: block;
1564-
margin-top: 1px;
1559+
.blame-avatar {
1560+
display: flex;
1561+
align-items: center;
1562+
margin-right: 4px;
15651563
}
15661564

15671565
.top-line-blame {

0 commit comments

Comments
 (0)