]> source.dussan.org Git - gitea.git/commitdiff
Fix blame line alignment (#13542)
authorsilverwind <me@silverwind.io>
Fri, 13 Nov 2020 18:27:36 +0000 (19:27 +0100)
committerGitHub <noreply@github.com>
Fri, 13 Nov 2020 18:27:36 +0000 (13:27 -0500)
We can't wrap code in blame because it's essentially two tables
side-by-side which will misalign them when one line gets larger.

Fixes: https://github.com/go-gitea/gitea/issues/13540
Regressed by: https://github.com/go-gitea/gitea/pull/13415

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
web_src/less/_base.less

index 63c99324fd26b44c3f22d1570921b6bbeaba710b..7a484e42691310d828a092487e91f9f825c5e2c3 100644 (file)
@@ -1122,6 +1122,7 @@ i.icon.centerlock {
 
 .blame .code-inner {
   white-space: pre;
+  word-break: normal;
 }
 
 .lines-commit {