aboutsummaryrefslogtreecommitdiffstats
path: root/templates/shared
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-04-16 10:52:45 +0200
committerGitHub <noreply@github.com>2024-04-16 08:52:45 +0000
commita658e2f277af435517f022355af697bdf588708e (patch)
tree4353183edd6a8fe9979dc3ae6001bed896715441 /templates/shared
parent58b204b813cd3a97db904d889d552e64a7e398ff (diff)
downloadgitea-a658e2f277af435517f022355af697bdf588708e.tar.gz
gitea-a658e2f277af435517f022355af697bdf588708e.zip
Fix long branch name overflows (#30345)
Fixes: https://github.com/go-gitea/gitea/issues/27971 Fixes: https://github.com/go-gitea/gitea/pull/28010 <img width="689" alt="Screenshot 2024-04-09 at 00 19 57" src="https://github.com/go-gitea/gitea/assets/115237/7c895a47-274f-40a6-a126-290658f1982d"> Also fixes a similar issue in issue list where CSS was there but not active because of missing `display: block`. <img width="372" alt="Screenshot 2024-04-09 at 00 18 25" src="https://github.com/go-gitea/gitea/assets/115237/cfbee7cd-2e15-4ac7-96ce-020816f48798">
Diffstat (limited to 'templates/shared')
-rw-r--r--templates/shared/issuelist.tmpl15
1 files changed, 9 insertions, 6 deletions
diff --git a/templates/shared/issuelist.tmpl b/templates/shared/issuelist.tmpl
index 1c0dfcc551..16c650ee3e 100644
--- a/templates/shared/issuelist.tmpl
+++ b/templates/shared/issuelist.tmpl
@@ -88,18 +88,21 @@
</div>
{{end}}
{{if and .Milestone (ne $.listType "milestone")}}
- <a class="milestone flex-text-inline" {{if $.RepoLink}}href="{{$.RepoLink}}/milestone/{{.Milestone.ID}}"{{else}}href="{{.Repo.Link}}/milestone/{{.Milestone.ID}}"{{end}}>
- {{svg "octicon-milestone" 14}}{{.Milestone.Name}}
+ <a class="milestone flex-text-inline tw-max-w-[300px]" {{if $.RepoLink}}href="{{$.RepoLink}}/milestone/{{.Milestone.ID}}"{{else}}href="{{.Repo.Link}}/milestone/{{.Milestone.ID}}"{{end}}>
+ {{svg "octicon-milestone" 14}}
+ <span class="gt-ellipsis">{{.Milestone.Name}}</span>
</a>
{{end}}
{{if .Project}}
- <a class="project flex-text-inline" href="{{.Project.Link ctx}}">
- {{svg .Project.IconName 14}}{{.Project.Title}}
+ <a class="project flex-text-inline tw-max-w-[300px]" href="{{.Project.Link ctx}}">
+ {{svg .Project.IconName 14}}
+ <span class="gt-ellipsis">{{.Project.Title}}</span>
</a>
{{end}}
{{if .Ref}}
- <a class="ref flex-text-inline" {{if $.RepoLink}}href="{{index $.IssueRefURLs .ID}}"{{else}}href="{{.Repo.Link}}{{index $.IssueRefURLs .ID}}"{{end}}>
- {{svg "octicon-git-branch" 14}}{{index $.IssueRefEndNames .ID}}
+ <a class="ref flex-text-inline tw-max-w-[300px]" {{if $.RepoLink}}href="{{index $.IssueRefURLs .ID}}"{{else}}href="{{.Repo.Link}}{{index $.IssueRefURLs .ID}}"{{end}}>
+ {{svg "octicon-git-branch" 14}}
+ <span class="gt-ellipsis">{{index $.IssueRefEndNames .ID}}</span>
</a>
{{end}}
{{$tasks := .GetTasks}}