Fix positioning of page header

This commit is contained in:
jeffvli 2023-01-08 02:01:12 -08:00
parent 0e2678575a
commit 4f3e732891
2 changed files with 1 additions and 4 deletions

View file

@ -65,6 +65,7 @@ export interface PageHeaderProps
}
const TitleWrapper = styled(motion.div)`
position: absolute;
width: 100%;
height: 100%;
`;

View file

@ -2,21 +2,17 @@ import { ReactNode } from 'react';
import { Group } from '@mantine/core';
import { TextTitle } from '/@/renderer/components';
import { PlayButton as PlayBtn } from '/@/renderer/features/shared/components/play-button';
import { useShouldPadTitlebar } from '/@/renderer/hooks';
interface LibraryHeaderBarProps {
children: ReactNode;
}
export const LibraryHeaderBar = ({ children }: LibraryHeaderBarProps) => {
const padRight = useShouldPadTitlebar();
return (
<Group
noWrap
align="center"
h="100%"
mr={padRight ? '170px' : 0}
px="1rem"
spacing="xl"
>