From 0d5ad0068a36910f281cbfa9ab3dcdcd765d7391 Mon Sep 17 00:00:00 2001 From: "jiawei.chen" Date: Wed, 8 Jul 2026 16:54:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20UI=E4=BF=AE=E5=A4=8D=E5=88=86=E6=94=AF?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=99=A8=E5=90=8C=E6=AD=A5=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/repos/ReposView.tsx | 35 ++++++++++++++------- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/frontend/src/components/repos/ReposView.tsx b/frontend/src/components/repos/ReposView.tsx index 778610e..06a2597 100644 --- a/frontend/src/components/repos/ReposView.tsx +++ b/frontend/src/components/repos/ReposView.tsx @@ -161,22 +161,33 @@ export default function ReposView() {
{ setFeUrl(e.target.value); setShowBranchPicker(false) }} onBlur={() => { if (feUrl.includes('://')) detectBranches(feUrl) }} className="flex-1 px-3 py-2 rounded-lg text-sm bg-[rgb(var(--color-page))] border border-[rgb(var(--color-border))] text-[rgb(var(--color-text-primary))] outline-none" />
-
setShowBranchPicker(!showBranchPicker)}> +
{ if (feUrl.includes('://')) detectBranches(feUrl); setShowBranchPicker(!showBranchPicker) }}> - {feBranch} + {scanningBranches ? ( + 扫描中... + ) : ( + {feBranch} + )}
- {showBranchPicker && branchSuggestions.length > 0 && ( + {showBranchPicker && (
- {branchSuggestions.map(b => ( - - ))} + {scanningBranches ? ( +
+ + 正在扫描远程分支... +
+ ) : ( + branchSuggestions.map(b => ( + + )) + )}
)}