From 4cf06841bdcd83e0a4cc047e98a7c2f0a23efbf8 Mon Sep 17 00:00:00 2001 From: Adam Strzelecki Date: Mon, 30 Nov 2015 19:07:34 +0100 Subject: [PATCH] UI: Commit list: Use natural Semantic UI sizes 1. Do not override default font size 2. Use semantic UI table column width specification --- public/css/gogs.css | 22 ---------------------- templates/repo/commits_table.tmpl | 8 ++++---- 2 files changed, 4 insertions(+), 26 deletions(-) diff --git a/public/css/gogs.css b/public/css/gogs.css index 7a15cb3af..0c76c3ef3 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -1868,9 +1868,6 @@ footer .container .links > *:first-child { margin-bottom: -4px; width: 400px; } -.repository.file.list #repo-files-table thead th .age { - margin-top: 2px; -} .repository.file.list #repo-files-table thead .ui.avatar { margin-bottom: 5px; } @@ -2243,25 +2240,6 @@ footer .container .links > *:first-child { font-weight: normal; padding: 5px 10px; } -.repository .commits.table { - font-size: 13px; -} -.repository .commits.table th:first-child, -.repository .commits.table td:first-child { - padding-left: 15px; -} -.repository .commits.table td { - line-height: 15px; -} -.repository .commits.table .author { - min-width: 180px; -} -.repository .commits.table .message span { - max-width: 500px; -} -.repository .commits.table .date { - width: 120px; -} .repository .diff-detail-box { margin: 15px 0; line-height: 30px; diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 77d0b0219..db89521ff 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -19,9 +19,9 @@ - - - + + + @@ -39,7 +39,7 @@ {{ShortSha .ID.String}}{{RenderCommitMessage .Summary $.RepoLink}} - + {{end}}
{{.i18n.Tr "repo.commits.author"}}   SHA1    {{.i18n.Tr "repo.commits.message"}}{{.i18n.Tr "repo.commits.date"}}{{.i18n.Tr "repo.commits.author"}}   SHA1    {{.i18n.Tr "repo.commits.message"}}{{.i18n.Tr "repo.commits.date"}}
{{TimeSince .Author.When $.Lang}}{{TimeSince .Author.When $.Lang}}