From 2ed21e7e09e48e847eff75ef9b665767aadbd30e Mon Sep 17 00:00:00 2001 From: Gary Kim Date: Fri, 9 Aug 2019 12:57:29 +0000 Subject: 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 * 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 * Remove unnecessary html element and fix indentation issues --- templates/repo/commits_table.tmpl | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'templates') 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 @@ {{if .User}} - {{if .User.FullName}} + {{if .User.FullName}}   {{.User.FullName}} - {{else}} + {{else}}   {{.Author.Name}} - {{end}} + {{end}} {{else}}   {{.Author.Name}} {{end}} @@ -71,13 +71,15 @@ - {{.Summary}} - {{if IsMultilineCommitMessage .Message}} - - - {{end}} + {{.Summary}} + {{if IsMultilineCommitMessage .Message}} + + {{end}} {{template "repo/commit_status" .Status}} + {{if IsMultilineCommitMessage .Message}} + + {{end}} {{TimeSince .Author.When $.Lang}} -- cgit v1.2.3