Skip to content

Commit 808f613

Browse files
committed
🎨 调整为只展示4个站点
1 parent 661b7b0 commit 808f613

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/pages/options/routes/ScriptList.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ function ScriptList() {
286286
if (!a.icon && b.icon) return 1;
287287
return a.match.localeCompare(b.match);
288288
})
289-
.slice(0, 5)
289+
.slice(0, 4)
290290
.map((fav) => (
291291
<Avatar
292292
key={fav.match}
@@ -309,6 +309,7 @@ function ScriptList() {
309309
)}
310310
</Avatar>
311311
))}
312+
{item.favorite && item.favorite.length > 4 && "..."}
312313
</Avatar.Group>
313314
</>
314315
);

0 commit comments

Comments
 (0)