diff options
author | vnkmpf <tz@zztt.eu> | 2021-02-12 02:29:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-12 03:29:07 +0200 |
commit | 51fb0463a349fd6eeb58ceeebd9ccf2267200ae6 (patch) | |
tree | 9a97da5924b6bfdfb77959ca63ad705abdcd6584 /templates/repo/pulls | |
parent | 5a18712dd7dcffecf88d3071381a836a543d8f2a (diff) | |
download | gitea-51fb0463a349fd6eeb58ceeebd9ccf2267200ae6.tar.gz gitea-51fb0463a349fd6eeb58ceeebd9ccf2267200ae6.zip |
Fix truncated organization names (#14655)
* Fix truncated organization names
Previous ellipsis implementation hid vertical overflow - image + descent line of letters.
Organization visibility in select on dashboard was not always visible.
This commit extracts classes which don't make collisions with other items on page.
Diffstat (limited to 'templates/repo/pulls')
-rw-r--r-- | templates/repo/pulls/fork.tmpl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/repo/pulls/fork.tmpl b/templates/repo/pulls/fork.tmpl index d172fc73cc..bf310e1596 100644 --- a/templates/repo/pulls/fork.tmpl +++ b/templates/repo/pulls/fork.tmpl @@ -13,22 +13,22 @@ <label>{{.i18n.Tr "repo.owner"}}</label> <div class="ui selection owner dropdown"> <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> - <span class="text" title="{{.ContextUser.Name}}"> + <span class="text truncated-item-container" title="{{.ContextUser.Name}}"> {{avatar .ContextUser 28 "mini"}} - {{.ContextUser.ShortName 40}} + <span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span> </span> {{svg "octicon-triangle-down" 14 "dropdown icon"}} <div class="menu"> {{if .CanForkToUser}} - <div class="item" data-value="{{.SignedUser.ID}}" title="{{.SignedUser.Name}}"> + <div class="item truncated-item-container" data-value="{{.SignedUser.ID}}" title="{{.SignedUser.Name}}"> {{avatar .SignedUser 28 "mini"}} - {{.SignedUser.ShortName 40}} + <span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span> </div> {{end}} {{range .Orgs}} - <div class="item" data-value="{{.ID}}" title="{{.Name}}"> + <div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}"> {{avatar . 28 "mini"}} - {{.ShortName 40}} + <span class="truncated-item-name">{{.ShortName 40}}</span> </div> {{end}} </div> |