Adjust spacing and video sizes in the grid view for better usability
Update CSS classes in `netflix-grid.tsx` to reduce margin bottom for category titles and adjust the width of video elements within different screen size breakpoints. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 074b0e4c-6171-43bd-aa98-f9e04623ca14 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/074b0e4c-6171-43bd-aa98-f9e04623ca14/iazasnP
This commit is contained in:
parent
8b8664b2de
commit
98c1dfab2b
@ -187,10 +187,10 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="relative group mb-4"
|
className="relative group mb-2"
|
||||||
onMouseLeave={() => setClickedVideoId(null)}
|
onMouseLeave={() => setClickedVideoId(null)}
|
||||||
>
|
>
|
||||||
<h2 className="text-2xl font-bold text-bunny-light mb-3 px-4">
|
<h2 className="text-2xl font-bold text-bunny-light mb-2 px-4">
|
||||||
{category.title}
|
{category.title}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
@ -226,7 +226,7 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
|
|||||||
{category.videos.map((video, index) => (
|
{category.videos.map((video, index) => (
|
||||||
<div
|
<div
|
||||||
key={video.id}
|
key={video.id}
|
||||||
className="flex-shrink-0 w-[calc(50vw-2px)] sm:w-[calc(33.33vw-2px)] md:w-[calc(25vw-2px)] lg:w-[calc(20vw-2px)] relative group"
|
className="flex-shrink-0 w-[calc(55vw-2px)] sm:w-[calc(40vw-2px)] md:w-[calc(30vw-2px)] lg:w-[calc(24vw-2px)] relative group"
|
||||||
onMouseEnter={() => setClickedVideoId(video.id)}
|
onMouseEnter={() => setClickedVideoId(video.id)}
|
||||||
>
|
>
|
||||||
{/* Top 10 Number overlay for first category */}
|
{/* Top 10 Number overlay for first category */}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user