diff options
author | zeripath <art27@cantab.net> | 2021-10-19 05:38:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-19 12:38:33 +0800 |
commit | e2a59c57fc1dcaecddc8d8dbf27d551c92dda101 (patch) | |
tree | 2d8fa8d96aead356a4bb5f4fbdd1637283752543 /web_src | |
parent | 1f41fcc342d35f58969c0777be2feaa610c1c267 (diff) | |
download | gitea-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 'web_src')
-rw-r--r-- | web_src/js/components/DashboardRepoList.js | 1 | ||||
-rw-r--r-- | web_src/less/_base.less | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/web_src/js/components/DashboardRepoList.js b/web_src/js/components/DashboardRepoList.js index 04eb304c80..426d362005 100644 --- a/web_src/js/components/DashboardRepoList.js +++ b/web_src/js/components/DashboardRepoList.js @@ -362,6 +362,7 @@ export function initDashboardRepoList() { return { searchLimit: dashboardRepoListData.searchLimit || 0, subUrl: AppSubUrl, + uid: dashboardRepoListData.uid || 0, }; }, }); diff --git a/web_src/less/_base.less b/web_src/less/_base.less index 59585b39e4..09d74d97b4 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -1361,6 +1361,13 @@ footer { margin-top: 0 !important; border-bottom-width: 0 !important; margin-bottom: 2px !important; + justify-content: space-evenly; + +} + +.ui.secondary.pointing.menu.repos-filter .item { + padding-left: 4.5px; + padding-right: 4.5px; } .repo-title { |