Skip to content

Commit af22df8

Browse files
silverwindlafriks
authored andcommitted
UI: Better support for long repo names (#5932)
* UI: Make long repo names wrap less often * also adjust news feed column widths
1 parent f9d4bd5 commit af22df8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/repo/header.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{with .Repository}}
33
<div class="ui container">
44
<div class="ui stackable grid header-grid">
5-
<div class="seven wide column">
5+
<div class="nine wide column">
66
<div class="ui huge breadcrumb">
77
<i class="mega-octicon octicon-{{if .IsPrivate}}lock{{else if .IsMirror}}repo-clone{{else if .IsFork}}repo-forked{{else}}repo{{end}}"></i>
88
<a href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a>
@@ -14,7 +14,7 @@
1414
</div>
1515
</div>
1616

17-
<div class="ui nine wide right aligned column">
17+
<div class="ui seven wide right aligned column">
1818
<div class="ui compact labeled button" tabindex="0">
1919
<a class="ui compact button" href="{{$.RepoLink}}/action/{{if $.IsWatchingRepo}}un{{end}}watch?redirect_to={{$.Link}}">
2020
<i class="icon fa-eye{{if not $.IsWatchingRepo}}-slash{{end}}"></i>{{if $.IsWatchingRepo}}{{$.i18n.Tr "repo.unwatch"}}{{else}}{{$.i18n.Tr "repo.watch"}}{{end}}

templates/user/dashboard/feeds.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<img class="ui avatar image" src="{{.GetActAvatar}}" alt="">
55
</div>
66
<div class="ui grid">
7-
<div class="ui thirteen wide column">
7+
<div class="ui fourteen wide column">
88
<div class="{{if or (eq .GetOpType 5) (eq .GetOpType 18)}}push news{{end}}">
99
<p>
1010
<a href="{{AppSubUrl}}/{{.GetActUserName}}" title="{{.GetActFullName}}">{{.ShortActUserName}}</a>
@@ -87,7 +87,7 @@
8787
<p class="text italic light grey">{{TimeSince .GetCreate $.i18n.Lang}}</p>
8888
</div>
8989
</div>
90-
<div class="ui three wide right aligned column">
90+
<div class="ui two wide right aligned column">
9191
<i class="text grey mega-octicon octicon-{{ActionIcon .GetOpType}}"></i>
9292
</div>
9393
</div>

0 commit comments

Comments
 (0)