From 7a6260f889e80856e2fb00bdfb8df90ec7652536 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 15 Mar 2024 17:45:30 +0800 Subject: [PATCH] Improve repo search UI (#29767) 1. Introduce a special "flex-items-block" for menu items, to align the dropdown menu items 2. Simplify the "repo search" form 3. Add missing "TopicOnly" search option Screenshots: The old UI items don't align:
![image](https://github.com/go-gitea/gitea/assets/2114189/b965ac00-bad6-4d2f-9103-8841bd940aa5)
New UI (doesn't change much, but the items align)
![image](https://github.com/go-gitea/gitea/assets/2114189/a1add892-21dc-423b-90d5-5569faa3dced) ![image](https://github.com/go-gitea/gitea/assets/2114189/fb4040b2-96d8-4fb2-a0ed-760b9881fd86)
--------- Co-authored-by: silverwind --- templates/admin/user/list.tmpl | 2 +- templates/devtest/gitea-ui.tmpl | 9 +++---- templates/shared/repo_search.tmpl | 32 +++++++++++-------------- templates/shared/search/input.tmpl | 2 +- tests/integration/explore_repos_test.go | 11 +++++++-- web_src/css/base.css | 8 ++++++- 6 files changed, 37 insertions(+), 27 deletions(-) diff --git a/templates/admin/user/list.tmpl b/templates/admin/user/list.tmpl index 11c2fa5940..091cbe7287 100644 --- a/templates/admin/user/list.tmpl +++ b/templates/admin/user/list.tmpl @@ -15,7 +15,7 @@