主页集合展示从 10 条改为 20 条

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Sakurasan
2026-07-14 00:00:31 +08:00
co-authored by Claude
parent ea3da4e138
commit b67d07e977
+3 -3
View File
@@ -517,7 +517,7 @@ function CollectionCard({
<p className="text-sm text-muted-foreground text-center py-4"></p> <p className="text-sm text-muted-foreground text-center py-4"></p>
) : ( ) : (
<div className="space-y-1"> <div className="space-y-1">
{stocks.slice(0, 10).map((stock) => ( {stocks.slice(0, 20).map((stock) => (
<StockRowItem <StockRowItem
key={stock.id} key={stock.id}
stock={stock} stock={stock}
@@ -526,8 +526,8 @@ function CollectionCard({
swipeResetKey={swipeResetKey} swipeResetKey={swipeResetKey}
/> />
))} ))}
{stocks.length > 10 && ( {stocks.length > 20 && (
<p className="text-xs text-muted-foreground text-center pt-1"> {stocks.length - 10} ...</p> <p className="text-xs text-muted-foreground text-center pt-1"> {stocks.length - 20} ...</p>
)} )}
</div> </div>
)} )}