From 7a6260f889e80856e2fb00bdfb8df90ec7652536 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 15 Mar 2024 17:45:30 +0800 Subject: 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/shared/repo_search.tmpl | 32 ++++++++++++++------------------ templates/shared/search/input.tmpl | 2 +- 2 files changed, 15 insertions(+), 19 deletions(-) (limited to 'templates/shared') diff --git a/templates/shared/repo_search.tmpl b/templates/shared/repo_search.tmpl index 7ba0070863..7fcb5d2361 100644 --- a/templates/shared/repo_search.tmpl +++ b/templates/shared/repo_search.tmpl @@ -1,22 +1,18 @@