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 <techknowlogick@gitea.io>
release/v1.15
Norwin 2021-05-15 01:15:53 +00:00 committed by GitHub
parent f3febeb594
commit b6b8b194ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -1504,6 +1504,7 @@ a.ui.label:hover {
.blame .code-inner { .blame .code-inner {
white-space: pre; white-space: pre;
word-break: normal; word-break: normal;
word-wrap: normal; /* not using overflow-wrap because safari does not treat is an an alias */
} }
.lines-commit { .lines-commit {
@ -1523,6 +1524,8 @@ a.ui.label:hover {
display: block; display: block;
user-select: none; user-select: none;
padding: 0 0 0 10px; padding: 0 0 0 10px;
line-height: 20px;
box-sizing: content-box;
.blame-data { .blame-data {
display: flex; display: flex;
@ -1533,7 +1536,6 @@ a.ui.label:hover {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
line-height: 20px;
} }
.blame-time, .blame-time,
@ -1546,6 +1548,8 @@ a.ui.label:hover {
.ui.avatar.image { .ui.avatar.image {
height: 18px; height: 18px;
width: 18px; width: 18px;
display: block;
margin-top: 1px;
} }
} }