Commit 65c4534

HPCesia <me@hpcesia.com>
2025-02-01 07:58:40
fix: search ui style
1 parent cf1da6c
Changed files (2)
src
src/components/Search.astro
@@ -10,7 +10,7 @@ import Pagefind from './search/Pagefind.astro';
   >
   </div>
   <div
-    class="theme-card-bg theme-border mx-auto mt-32 flex w-11/12 flex-col items-center justify-center gap-4 overflow-hidden rounded-xl border-2 md:w-1/2"
+    class="theme-card-bg theme-border mx-auto mt-[min(10%,8rem)] flex w-11/12 flex-col items-center justify-center gap-4 overflow-hidden rounded-xl border-2 md:w-1/2"
   >
     <div class="w-full p-4">
       {
src/layouts/MainLayout.astro
@@ -20,11 +20,11 @@ const { title, description, lang } = Astro.props;
   <Sidebar />
   <SideToolBar />
   <Navbar />
-  {searchConfig.enable && <Search />}
   <slot name="header" />
   <div id="body-wrap" class="w-full items-center md:px-4">
     <!-- Main content -->
     <slot />
   </div>
+  {searchConfig.enable && <Search />}
   <PageFooter />
 </GlobalLayout>