fix: resolve remaining review follow-ups

This commit is contained in:
Cita
2026-03-22 23:53:41 +08:00
parent 5d78658af9
commit 29c9fcbd29
5 changed files with 53 additions and 16 deletions
+3 -1
View File
@@ -290,7 +290,7 @@ export default function Settings() {
const query = selectorGroupSearch.trim();
if (!query) return groupRouteOptions;
return groupRouteOptions.filter((route) => {
const matchText = `${resolveRouteTitle(route)} ${route.modelPattern} ${route.displayName || ''}`;
const matchText = `${resolveRouteTitle(route)} ${route.modelPattern}`;
return fuzzyMatch(matchText, query);
});
}, [groupRouteOptions, selectorGroupSearch]);
@@ -1970,6 +1970,8 @@ export default function Settings() {
<BrandGlyph brand={routeBrand} alt={routeTitle} size={18} fallbackText={routeTitle} />
) : routeIcon.kind === 'auto' ? (
<InlineBrandIcon model={route.modelPattern} size={18} />
) : routeIcon.kind === 'none' ? (
null
) : null}
</span>
<span style={{ overflow: 'hidden', textOverflow: 'ellipsis' }}>