From f8601f3f099b9b0cf98085fec94734c39c013bee Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 27 Aug 2020 22:45:37 +0200 Subject: Fix ellipsis in files table (#12617) Turns out text ellispsis does not work in combination with flexbox and while wrapping in a display:block can help in some cases, I could not get this to work properly so this changes the truncate to inline-block again and reduces the clickable area to just vertical expansion from the links. --- templates/repo/view_list.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'templates/repo/view_list.tmpl') diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index 36c3024d1d..2e70f4ff84 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}} -- cgit v1.2.3