aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-10-19 05:38:33 +0100
committerGitHub <noreply@github.com>2021-10-19 12:38:33 +0800
commite2a59c57fc1dcaecddc8d8dbf27d551c92dda101 (patch)
tree2d8fa8d96aead356a4bb5f4fbdd1637283752543 /templates
parent1f41fcc342d35f58969c0777be2feaa610c1c267 (diff)
downloadgitea-e2a59c57fc1dcaecddc8d8dbf27d551c92dda101.tar.gz
gitea-e2a59c57fc1dcaecddc8d8dbf27d551c92dda101.zip
Fix dashboard repolist alignment and repolisting (#17355)
Unfortunately #17301 broke the restriction of the dashboard repolist to the user's repos because it stopped passing in the uid for the current user. This PR restores this. There is also a weird alignment problem - not caused by that PR - where the menu items in the repolist spread over multiple lines. This PR simply reduces the padding on these items and switches the justification of the flex elements to space-evenly. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates')
-rw-r--r--templates/user/dashboard/repolist.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/user/dashboard/repolist.tmpl b/templates/user/dashboard/repolist.tmpl
index e2cfa76e88..c02cdecd49 100644
--- a/templates/user/dashboard/repolist.tmpl
+++ b/templates/user/dashboard/repolist.tmpl
@@ -2,6 +2,7 @@
<repo-search
:search-limit="searchLimit"
:sub-url="subUrl"
+ :uid="uid"
{{if .Team}}
:team-id="{{.Team.ID}}"
{{end}}
@@ -95,7 +96,7 @@
</div>
</div>
</div>
- <div class="ui secondary tiny pointing borderless menu center aligned grid repos-filter">
+ <div class="ui secondary tiny pointing borderless menu center grid repos-filter">
<a class="item" :class="{active: reposFilter === 'all'}" @click="changeReposFilter('all')">
{{.i18n.Tr "all"}}
<div v-show="reposFilter === 'all'" class="ui circular mini grey label">${repoTypeCount}</div>