remove elevated header
This commit is contained in:
@@ -2,11 +2,7 @@ import { Title, AppShell, Flex } from "@mantine/core";
|
|||||||
import { HeaderConfig } from "../types/header-config";
|
import { HeaderConfig } from "../types/header-config";
|
||||||
import BackButton from "./back-button";
|
import BackButton from "./back-button";
|
||||||
|
|
||||||
interface HeaderProps extends HeaderConfig {
|
const Header = ({ collapsed, title, withBackButton }: HeaderConfig) => {
|
||||||
elevated?: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
const Header = ({ collapsed, title, withBackButton, elevated }: HeaderProps) => {
|
|
||||||
return (
|
return (
|
||||||
<AppShell.Header
|
<AppShell.Header
|
||||||
id='app-header'
|
id='app-header'
|
||||||
@@ -15,7 +11,6 @@ const Header = ({ collapsed, title, withBackButton, elevated }: HeaderProps) =>
|
|||||||
style={{
|
style={{
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
borderBottom: `1px solid ${elevated ? 'var(--app-shell-border-color, var(--mantine-color-default-border))' : 'transparent'}`,
|
|
||||||
transition: 'border-color 200ms ease-out',
|
transition: 'border-color 200ms ease-out',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ const Layout: React.FC<PropsWithChildren> = ({ children }) => {
|
|||||||
// top: viewport.top
|
// top: viewport.top
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Header {...header} elevated={scrollPosition.y > 2} />
|
<Header {...header} />
|
||||||
<AppShell.Main
|
<AppShell.Main
|
||||||
pos='relative'
|
pos='relative'
|
||||||
h='100%'
|
h='100%'
|
||||||
|
|||||||
Reference in New Issue
Block a user