diff --git a/src/components/layout/new-header/Header.tsx b/src/components/layout/new-header/Header.tsx
index fa243b2ba..67b4933de 100644
--- a/src/components/layout/new-header/Header.tsx
+++ b/src/components/layout/new-header/Header.tsx
@@ -1,4 +1,13 @@
-import { Box, Flex, Group, Header, Text, UnstyledButton, useMantineTheme } from '@mantine/core';
+import {
+ Box,
+ Center,
+ Flex,
+ Group,
+ Header,
+ Text,
+ UnstyledButton,
+ useMantineTheme,
+} from '@mantine/core';
import { useMediaQuery } from '@mantine/hooks';
import { IconAlertTriangle } from '@tabler/icons-react';
import Link from 'next/link';
@@ -24,7 +33,10 @@ export const MainHeader = ({
const { breakpoints } = useMantineTheme();
const isSmallerThanMd = useMediaQuery(`(max-width: ${breakpoints.sm})`);
const experimentalHeaderNoteHeight = isSmallerThanMd ? 50 : 30;
- const headerHeight = showExperimental ? 60 + experimentalHeaderNoteHeight : 60;
+ const headerBaseHeight = isSmallerThanMd ? 60 + 46 : 60;
+ const headerHeight = showExperimental
+ ? headerBaseHeight + experimentalHeaderNoteHeight
+ : headerBaseHeight;
return (
@@ -37,7 +49,7 @@ export const MainHeader = ({
-
+ {!isSmallerThanMd && }
@@ -46,6 +58,12 @@ export const MainHeader = ({
+
+ {isSmallerThanMd && (
+
+
+
+ )}
);
};
diff --git a/src/components/layout/new-header/search.tsx b/src/components/layout/new-header/search.tsx
index ab3a0c748..b919a3407 100644
--- a/src/components/layout/new-header/search.tsx
+++ b/src/components/layout/new-header/search.tsx
@@ -15,7 +15,11 @@ import { api } from '~/utils/api';
import { MovieModal } from './MovieModal';
-export const Search = () => {
+type SearchProps = {
+ isMobile?: boolean;
+};
+
+export const Search = ({ isMobile }: SearchProps) => {
const [search, setSearch] = useState('');
const ref = useRef(null);
useHotkeys([['mod+K', () => ref.current?.focus()]]);
@@ -40,7 +44,7 @@ export const Search = () => {