summaryrefslogtreecommitdiffstats
path: root/templates/user/project.tmpl
diff options
context:
space:
mode:
authorvnkmpf <t.z@mail.com>2021-02-09 20:51:01 +0100
committerGitHub <noreply@github.com>2021-02-09 19:51:01 +0000
commit3a4801d1958ce33c9b893433c096281aa5b9b1c5 (patch)
treebe43c76ff7a7f52368fcb0dc46b8c1773a127c07 /templates/user/project.tmpl
parentb337c606d3669b3e2f9b805d6c74b593d6271414 (diff)
downloadgitea-3a4801d1958ce33c9b893433c096281aa5b9b1c5.tar.gz
gitea-3a4801d1958ce33c9b893433c096281aa5b9b1c5.zip
Truncated organisations name #14583 (#14615)
- truncate to max length 40 - add CSS ellipsis
Diffstat (limited to 'templates/user/project.tmpl')
-rw-r--r--templates/user/project.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/user/project.tmpl b/templates/user/project.tmpl
index b444783dbb..eabed943fe 100644
--- a/templates/user/project.tmpl
+++ b/templates/user/project.tmpl
@@ -15,18 +15,18 @@
<input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required>
<span class="text" title="{{.ContextUser.Name}}">
{{avatar .ContextUser 28 "mini"}}
- {{.ContextUser.ShortName 20}}
+ {{.ContextUser.ShortName 40}}
</span>
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
<div class="menu">
<div class="item" data-value="{{.SignedUser.ID}}" title="{{.SignedUser.Name}}">
{{avatar .SignedUser 28 "mini"}}
- {{.SignedUser.ShortName 20}}
+ {{.SignedUser.ShortName 40}}
</div>
{{range .Orgs}}
<div class="item" data-value="{{.ID}}" title="{{.Name}}">
{{avatar . 28 "mini"}}
- {{.ShortName 20}}
+ {{.ShortName 40}}
</div>
{{end}}
</div>