Truncate long user/project names on landing page sidebar

This commit is contained in:
Asaf Gartner 2024-06-29 23:36:22 +03:00
parent 46afc573f6
commit 4ae8f2c7b9
1 changed files with 3 additions and 3 deletions

View File

@ -203,7 +203,7 @@
{{ else }} {{ else }}
<div class="avatar avatar-small"></div> <div class="avatar avatar-small"></div>
{{ end }} {{ end }}
<div>{{ .Name }}</div> <div class="truncate" title="{{ .Name }}">{{ .Name }}</div>
</a> </a>
{{ end }} {{ end }}
@ -215,7 +215,7 @@
{{ else }} {{ else }}
<div class="avatar avatar-user avatar-small"></div> <div class="avatar avatar-user avatar-small"></div>
{{ end }} {{ end }}
<div>{{ .User.Name }}</div> <div class="truncate" title="{{ .User.Name }}">{{ .User.Name }}</div>
</a> </a>
{{ else if .Project }} {{ else if .Project }}
<a class="flex g2 items-center" href="{{ .Project.Url }}"> <a class="flex g2 items-center" href="{{ .Project.Url }}">
@ -224,7 +224,7 @@
{{ else }} {{ else }}
<div class="avatar avatar-small"></div> <div class="avatar avatar-small"></div>
{{ end }} {{ end }}
<div>{{ .Project.Name }}</div> <div class="truncate" title="{{ .Project.Name }}">{{ .Project.Name }}</div>
</a> </a>
{{ else }} {{ else }}
??? ???