diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index 36c3024d1db..2e70f4ff84b 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -49,7 +49,7 @@ {{svg "octicon-file-submodule" 16}} {{$refURL := $commit.RefURL AppUrl $.Repository.FullName}} {{if $refURL}} - {{$entry.Name}}@{{ShortSha $commit.RefID}} + {{$entry.Name}}@{{ShortSha $commit.RefID}} {{else}} {{$entry.Name}}@{{ShortSha $commit.RefID}} {{end}} @@ -58,7 +58,7 @@ {{$subJumpablePathName := $entry.GetSubJumpablePathName}} {{$subJumpablePath := SubJumpablePath $subJumpablePathName}} {{svg "octicon-file-directory" 16}} - + {{if eq (len $subJumpablePath) 2}} {{index $subJumpablePath 0}}{{index $subJumpablePath 1}} {{else}} @@ -67,14 +67,14 @@ {{else}} {{svg (printf "octicon-%s" (EntryIcon $entry)) 16}} - {{$entry.Name}} + {{$entry.Name}} {{end}} {{end}} - {{$commit.Summary | RenderEmoji}} + {{$commit.Summary | RenderEmoji}} {{TimeSince $commit.Committer.When $.Lang}} diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 26423ff29f2..80fb8edcf7c 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -362,12 +362,13 @@ } .truncate { - display: inline-flex; - align-items: center; + display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; + padding-top: 8px; + padding-bottom: 8px; } a {