From aaa539dd2dd08fd92462e6e115a07f716d63f7ca Mon Sep 17 00:00:00 2001 From: Norwin Date: Sat, 15 May 2021 16:12:07 +0000 Subject: [PATCH] Fix blame row height alignment (#15863) (#15883) * fix blame row alignment on firefox * fix blame row alignment in chrome * fix blame row alignment in safari Co-authored-by: techknowlogick --- web_src/less/_base.less | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web_src/less/_base.less b/web_src/less/_base.less index 7d7510891..07f3c59f8 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -1496,6 +1496,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 { @@ -1515,6 +1516,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; @@ -1525,7 +1528,6 @@ a.ui.label:hover { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; - line-height: 20px; } .blame-time, @@ -1538,6 +1540,8 @@ a.ui.label:hover { .ui.avatar.image { height: 18px; width: 18px; + display: block; + margin-top: 1px; } }