From e7eb86bf7e409199a5b17e670aa629f172981f71 Mon Sep 17 00:00:00 2001 From: zetaloop Date: Wed, 25 Feb 2026 04:41:29 +0800 Subject: [PATCH] style(search): align search page with proto2 surfaces --- app/(main)/search/page.tsx | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/app/(main)/search/page.tsx b/app/(main)/search/page.tsx index 0b8eedc..74e0393 100644 --- a/app/(main)/search/page.tsx +++ b/app/(main)/search/page.tsx @@ -110,7 +110,7 @@ function PlayerCard({ player }: { player: Player }) { return ( - +
@@ -121,12 +121,12 @@ function PlayerCard({ player }: { player: Player }) {

{player.user.nickname}

{player.shopName ? ( - + {player.shopName} ) : ( - + 个人 @@ -163,7 +163,7 @@ function PlayerCard({ player }: { player: Player }) { {player.tags.slice(0, 2).map((tag) => ( {tag} @@ -179,7 +179,7 @@ function PlayerCard({ player }: { player: Player }) { ¥{minPrice} /{unit}
- @@ -193,7 +193,7 @@ type ShopSearchItem = Extract function ShopCard({ item }: { item: ShopSearchItem }) { return ( - +
@@ -203,7 +203,7 @@ function ShopCard({ item }: { item: ShopSearchItem }) {

{item.shop.name}

- + 店铺 @@ -244,7 +244,7 @@ function ShopCard({ item }: { item: ShopSearchItem }) { ¥{item.minPrice} /{item.unit}
- @@ -354,7 +354,7 @@ function FilterSection({ 最低评分 setSearchQuery(e.target.value)} /> @@ -574,7 +574,7 @@ function SearchPageContent() { - @@ -598,7 +598,7 @@ function SearchPageContent() {
- + @@ -653,7 +653,7 @@ function SearchPageContent() { variant={sortBy === "composite" ? "secondary" : "ghost"} size="sm" onClick={() => setSortAndSync("composite")} - className="whitespace-nowrap" + className="whitespace-nowrap rounded-full" > 综合排序 @@ -661,7 +661,7 @@ function SearchPageContent() { variant={sortBy === "rating" ? "secondary" : "ghost"} size="sm" onClick={() => setSortAndSync("rating")} - className="whitespace-nowrap" + className="whitespace-nowrap rounded-full" > 评分最高 @@ -669,7 +669,7 @@ function SearchPageContent() { variant={sortBy === "orders" ? "secondary" : "ghost"} size="sm" onClick={() => setSortAndSync("orders")} - className="whitespace-nowrap" + className="whitespace-nowrap rounded-full" > 接单最多 @@ -677,7 +677,7 @@ function SearchPageContent() { variant={sortBy.startsWith("price") ? "secondary" : "ghost"} size="sm" onClick={() => setSortAndSync(sortBy === "price_asc" ? "price_desc" : "price_asc")} - className="whitespace-nowrap gap-1" + className="whitespace-nowrap gap-1 rounded-full" > 价格 @@ -721,7 +721,7 @@ function SearchPageContent() {