feat: add stitle and stype, optimize prefer choose

This commit is contained in:
shinya
2025-07-11 01:51:53 +08:00
parent e18dc3787f
commit 367ad8aa48
7 changed files with 140 additions and 46 deletions

View File

@@ -201,7 +201,15 @@ function SearchPageClient() {
? aggregatedResults.map(([mapKey, group]) => {
return (
<div key={`agg-${mapKey}`} className='w-full'>
<VideoCard from='search' items={group} />
<VideoCard
from='search'
items={group}
query={
searchQuery.trim() !== group[0].title
? searchQuery.trim()
: ''
}
/>
</div>
);
})
@@ -218,6 +226,11 @@ function SearchPageClient() {
source={item.source}
source_name={item.source_name}
douban_id={item.douban_id?.toString()}
query={
searchQuery.trim() !== item.title
? searchQuery.trim()
: ''
}
from='search'
/>
</div>