diff options
author | Gary Kim <gary@garykim.dev> | 2019-08-09 12:57:29 +0000 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-08-09 20:57:29 +0800 |
commit | 2ed21e7e09e48e847eff75ef9b665767aadbd30e (patch) | |
tree | ad796d8f3054c2e607c9f8e59c3adaed583f3084 /templates | |
parent | 2b6f45299d6e96b633a309d68055f9ae0699b8f2 (diff) | |
download | gitea-2ed21e7e09e48e847eff75ef9b665767aadbd30e.tar.gz gitea-2ed21e7e09e48e847eff75ef9b665767aadbd30e.zip |
Prevent Commit Status and Message From Overflowing On Branch Page (#7800)
* Prevent Commit Status From Overflowing On Branch Page
It is possible for the commit ci status
on the branches page for a repository to
become an ellipsis due to overflowing.
This commit will fix that issue by
using flex.
Signed-off-by: Gary Kim <gary@garykim.dev>
* Fix multiple overflowing issues in commits table
It was possible that the commit message would
overflow hiding the expand commits button
and commit status. This change ensures that
the correct elements overflow without hiding
anything else.
This change also reverts using flex in the
commits list because it was causing issues
in Blink based browsers.
Signed-off-by: Gary Kim <gary@garykim.dev>
* Remove unnecessary html element and fix indentation issues
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/commits_table.tmpl | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index ebeb87b93c..7ea854103c 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -46,11 +46,11 @@ <tr> <td class="author"> {{if .User}} - {{if .User.FullName}} + {{if .User.FullName}} <img class="ui avatar image" src="{{.User.RelAvatarLink}}" alt=""/> <a href="{{AppSubUrl}}/{{.User.Name}}">{{.User.FullName}}</a> - {{else}} + {{else}} <img class="ui avatar image" src="{{.User.RelAvatarLink}}" alt=""/> <a href="{{AppSubUrl}}/{{.User.Name}}">{{.Author.Name}}</a> - {{end}} + {{end}} {{else}} <img class="ui avatar image" src="{{AvatarLink .Author.Email}}" alt=""/> {{.Author.Name}} {{end}} @@ -71,13 +71,15 @@ </td> <td class="message"> <span class="message-wrapper"> - <span class="commit-summary has-emoji{{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{.Summary}}</span> - {{if IsMultilineCommitMessage .Message}} - <button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button> - <pre class="commit-body" style="display: none;">{{RenderCommitBody .Message $.RepoLink $.Repository.ComposeMetas}}</pre> - {{end}} + <span class="commit-summary has-emoji{{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{.Summary}}</span> </span> + {{if IsMultilineCommitMessage .Message}} + <button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button> + {{end}} {{template "repo/commit_status" .Status}} + {{if IsMultilineCommitMessage .Message}} + <pre class="commit-body" style="display: none;">{{RenderCommitBody .Message $.RepoLink $.Repository.ComposeMetas}}</pre> + {{end}} </td> <td class="grey text right aligned">{{TimeSince .Author.When $.Lang}}</td> </tr> |