Commit 48961b9

HPCesia <me@hpcesia.com>
2025-04-15 16:34:13
fix(config): banner default height
use dvh instead of vh to fix performance in mobile browser
1 parent d95be11
Changed files (1)
src/config.ts
@@ -28,15 +28,15 @@ export const siteConfig: SiteConfig = {
   banner: {
     src: 'assets/img/demo_banner.jpg',
     text: 'Welcome to Astral Halo!',
-    homepageHeight: '100vh',
-    postHeight: '40vh',
+    homepageHeight: '100dvh',
+    postHeight: '40dvh',
     pagesHeight: [
       // {
       //   pagePathRegex: /\/about\//,
-      //   height: '50vh',
+      //   height: '50dvh',
       // },
     ],
-    defaultHeight: '40vh',
+    defaultHeight: '40dvh',
   },
 };