Adjust header styles

This commit is contained in:
jeffvli 2023-01-02 18:17:06 -08:00
parent 6490118741
commit 0baa6f4488
3 changed files with 6 additions and 2 deletions

View file

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

View file

@ -143,9 +143,10 @@ export const LibraryHeader = forwardRef(
</Group> </Group>
<TextTitle <TextTitle
fw="900" fw="900"
lh="1.15" lh="1"
lineClamp={2} lineClamp={2}
mt=".08em" mt=".08em"
overflow="hidden"
sx={{ fontSize: titleSize, overflow: 'hidden' }} sx={{ fontSize: titleSize, overflow: 'hidden' }}
> >
{title} {title}

View file

@ -1,7 +1,6 @@
import { css } from 'styled-components'; import { css } from 'styled-components';
export const textEllipsis = css` export const textEllipsis = css`
overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
`; `;