mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-05-20 04:47:30 +08:00
feat: adjust favorites and search results grid
This commit is contained in:
@@ -150,9 +150,9 @@ function HomeClient() {
|
|||||||
<h2 className='mb-4 text-xl font-bold text-gray-800 text-left'>
|
<h2 className='mb-4 text-xl font-bold text-gray-800 text-left'>
|
||||||
我的收藏
|
我的收藏
|
||||||
</h2>
|
</h2>
|
||||||
<div className='flex flex-wrap gap-x-8 gap-y-20 px-4'>
|
<div className='justify-start grid grid-cols-[repeat(auto-fill,_minmax(11rem,_1fr))] gap-x-8 gap-y-20 px-4'>
|
||||||
{favoriteItems.map((item) => (
|
{favoriteItems.map((item) => (
|
||||||
<div key={item.id + item.source} className='w-44'>
|
<div key={item.id + item.source} className='w-full'>
|
||||||
<VideoCard {...item} from='favorites' />
|
<VideoCard {...item} from='favorites' />
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -125,9 +125,9 @@ function SearchPageClient() {
|
|||||||
</div>
|
</div>
|
||||||
) : showResults ? (
|
) : showResults ? (
|
||||||
// 搜索结果
|
// 搜索结果
|
||||||
<div className='flex flex-wrap gap-x-8 gap-y-20 px-4'>
|
<div className='justify-start grid grid-cols-[repeat(auto-fill,_minmax(11rem,_1fr))] gap-x-8 gap-y-20 px-4'>
|
||||||
{searchResults.map((item) => (
|
{searchResults.map((item) => (
|
||||||
<div key={item.id} className='w-44'>
|
<div key={item.id} className='w-full'>
|
||||||
<VideoCard {...item} from='search' />
|
<VideoCard {...item} from='search' />
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user