Skip to content

Commit

Permalink
REFACTOR : Made search box non sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
kuchuk borom debbarma committed Jan 1, 2025
1 parent 90988e1 commit 00aa0cf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions youtag_astro/src/pages/search.astro
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ console.log(`Videos = ${videos.toString()}`);
</head>

<div class="min-h-screen bg-black/90 flex flex-col">
<div class="sticky top-0 z-50 bg-black/95">
<div class="z-50 bg-black/95">
<Navbar user={user!} client:load/>
<div class="px-2 sm:px-4 md:px-6 lg:px-8 py-2 sm:py-4">
<SearchBox initialTags={tagsList} client:load/>
</div>
</div>

<main class="flex-1 px-2 sm:px-4 md:px-6 lg:px-8 py-4">
<div class="max-w-7xl mx-auto">
<div class="max-w-7xl mx-auto space-y-4">
<SearchBox initialTags={tagsList} client:load/>

<!-- Videos List -->
<VideosList
videos={videos}
totalVideos={videosCount}
Expand All @@ -66,4 +66,4 @@ console.log(`Videos = ${videos.toString()}`);
/>
</div>
</main>
</div>
</div>

0 comments on commit 00aa0cf

Please sign in to comment.