Skip to content

Commit b6b8b19

Browse files
Fix blame row height alignment (#15863)
* fix blame row alignment on firefox * fix blame row alignment in chrome * fix blame row alignment in safari as per @silverwind Co-authored-by: techknowlogick <[email protected]>
1 parent f3febeb commit b6b8b19

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web_src/less/_base.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1504,6 +1504,7 @@ a.ui.label:hover {
15041504
.blame .code-inner {
15051505
white-space: pre;
15061506
word-break: normal;
1507+
word-wrap: normal; /* not using overflow-wrap because safari does not treat is an an alias */
15071508
}
15081509

15091510
.lines-commit {
@@ -1523,6 +1524,8 @@ a.ui.label:hover {
15231524
display: block;
15241525
user-select: none;
15251526
padding: 0 0 0 10px;
1527+
line-height: 20px;
1528+
box-sizing: content-box;
15261529

15271530
.blame-data {
15281531
display: flex;
@@ -1533,7 +1536,6 @@ a.ui.label:hover {
15331536
overflow: hidden;
15341537
white-space: nowrap;
15351538
text-overflow: ellipsis;
1536-
line-height: 20px;
15371539
}
15381540

15391541
.blame-time,
@@ -1546,6 +1548,8 @@ a.ui.label:hover {
15461548
.ui.avatar.image {
15471549
height: 18px;
15481550
width: 18px;
1551+
display: block;
1552+
margin-top: 1px;
15491553
}
15501554
}
15511555

0 commit comments

Comments
 (0)