From db8b488ad2e7773042569a64a1b40b7600b104f8 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 21 Jul 2023 18:29:25 +0200 Subject: [PATCH 1/2] Increase table cell padding, use icons in admin table headers Fixes: https://github.com/go-gitea/gitea/issues/25939 --- templates/admin/repo/list.tmpl | 20 ++++++++++++-------- templates/admin/user/list.tmpl | 20 +++++++++++++++----- web_src/css/base.css | 2 +- 3 files changed, 28 insertions(+), 14 deletions(-) diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl index 3cd8f08f51b11..7933bdd69f383 100644 --- a/templates/admin/repo/list.tmpl +++ b/templates/admin/repo/list.tmpl @@ -19,21 +19,25 @@ {{.locale.Tr "admin.repos.name"}} {{SortArrow "alphabetically" "reversealphabetically" $.SortType false}} - {{.locale.Tr "admin.repos.watches"}} - - {{.locale.Tr "admin.repos.stars"}} + + {{svg "octicon-eye"}} + + + {{svg "octicon-star"}} {{SortArrow "moststars" "feweststars" $.SortType false}} - - {{.locale.Tr "admin.repos.forks"}} + + {{svg "octicon-repo-forked"}} {{SortArrow "mostforks" "fewestforks" $.SortType false}} - {{.locale.Tr "admin.repos.issues"}} - + + {{svg "octicon-issue-opened"}} + + {{.locale.Tr "admin.repos.size"}} {{SortArrow "gitsize" "reversegitsize" $.SortType false}} - + {{.locale.Tr "admin.repos.lfs_size"}} {{SortArrow "lfssize" "reverselfssize" $.SortType false}} diff --git a/templates/admin/user/list.tmpl b/templates/admin/user/list.tmpl index 3742b4ae85176..61cd284285ec9 100644 --- a/templates/admin/user/list.tmpl +++ b/templates/admin/user/list.tmpl @@ -67,11 +67,21 @@ {{SortArrow "alphabetically" "reversealphabetically" $.SortType true}} {{.locale.Tr "email"}} - {{.locale.Tr "admin.users.activated"}} - {{.locale.Tr "admin.users.admin"}} - {{.locale.Tr "admin.users.restricted"}} - {{.locale.Tr "admin.users.2fa"}} - {{.locale.Tr "admin.users.repos"}} + + {{svg "octicon-check-circle"}} + + + {{svg "octicon-gear"}} + + + {{svg "octicon-skip"}} + + + {{svg "octicon-key"}} + + + {{svg "octicon-repo"}} + {{.locale.Tr "admin.users.created"}} {{.locale.Tr "admin.users.last_login"}} diff --git a/web_src/css/base.css b/web_src/css/base.css index 542fb1fd74607..dea8baf5d108d 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -883,7 +883,7 @@ a.label, .ui.table > thead > tr > th, .ui.table > tbody > tr > td, .ui.table > tr > td { - padding: 6px 3px; + padding: 6px; } /* use more horizontal padding on first and last items for visuals */ .ui.table > thead > tr > th:first-of-type, From 10c8cada733d9430a16fcaeeccef6b41df2bdf1a Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 21 Jul 2023 18:44:54 +0200 Subject: [PATCH 2/2] reduce by 1px --- web_src/css/base.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/css/base.css b/web_src/css/base.css index dea8baf5d108d..f517b6b2ca635 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -883,7 +883,7 @@ a.label, .ui.table > thead > tr > th, .ui.table > tbody > tr > td, .ui.table > tr > td { - padding: 6px; + padding: 6px 5px; } /* use more horizontal padding on first and last items for visuals */ .ui.table > thead > tr > th:first-of-type,