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 => ( + + )) + )}
)}