diff options
author | Norwin <noerw@users.noreply.github.com> | 2021-05-15 01:15:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-14 21:15:53 -0400 |
commit | b6b8b194ca9e9fa848fe16f72f8a14aa0525725c (patch) | |
tree | 08650da296893b7a5702ae2edf6b16f2ea825dc8 | |
parent | f3febeb59459b6738ce803f5dda1a32292c48b7c (diff) | |
download | gitea-b6b8b194ca9e9fa848fe16f72f8a14aa0525725c.tar.gz gitea-b6b8b194ca9e9fa848fe16f72f8a14aa0525725c.zip |
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>
-rw-r--r-- | web_src/less/_base.less | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less index e356c01cc0..c3a7f6ca2c 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -1504,6 +1504,7 @@ a.ui.label:hover { .blame .code-inner { white-space: pre; word-break: normal; + word-wrap: normal; /* not using overflow-wrap because safari does not treat is an an alias */ } .lines-commit { @@ -1523,6 +1524,8 @@ a.ui.label:hover { display: block; user-select: none; padding: 0 0 0 10px; + line-height: 20px; + box-sizing: content-box; .blame-data { display: flex; @@ -1533,7 +1536,6 @@ a.ui.label:hover { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; - line-height: 20px; } .blame-time, @@ -1546,6 +1548,8 @@ a.ui.label:hover { .ui.avatar.image { height: 18px; width: 18px; + display: block; + margin-top: 1px; } } |