mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Improve the height of the header in the library
We need to handle library headers and PDF headers differently.
This commit is contained in:
parent
b0db2555ed
commit
89d59be1f2
3 changed files with 21 additions and 3 deletions
|
|
@ -0,0 +1,18 @@
|
|||
import { Box } from '../../elements/LayoutPrimitives'
|
||||
|
||||
export const HEADER_HEIGHT = '105px'
|
||||
export const MOBILE_HEADER_HEIGHT = '70px'
|
||||
|
||||
export function PdfHeaderSpacer(): JSX.Element {
|
||||
return (
|
||||
<Box
|
||||
css={{
|
||||
height: HEADER_HEIGHT,
|
||||
bg: '$grayBase',
|
||||
'@xlgDown': {
|
||||
height: MOBILE_HEADER_HEIGHT,
|
||||
},
|
||||
}}
|
||||
></Box>
|
||||
)
|
||||
}
|
||||
|
|
@ -9,7 +9,7 @@ export function HeaderSpacer(): JSX.Element {
|
|||
css={{
|
||||
height: HEADER_HEIGHT,
|
||||
bg: '$grayBase',
|
||||
'@xlgDown': {
|
||||
'@mdDown': {
|
||||
height: MOBILE_HEADER_HEIGHT,
|
||||
},
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ import { setLabelsMutation } from '../../../lib/networking/mutations/setLabelsMu
|
|||
import { ReaderHeader } from '../../../components/templates/reader/ReaderHeader'
|
||||
import { EditArticleModal } from '../../../components/templates/homeFeed/EditItemModals'
|
||||
import { VerticalArticleActionsMenu } from '../../../components/templates/article/VerticalArticleActions'
|
||||
import { HeaderSpacer } from '../../../components/templates/homeFeed/HeaderSpacer'
|
||||
import { PdfHeaderSpacer } from '../../../components/templates/article/PdfHeaderSpacer'
|
||||
|
||||
const PdfArticleContainerNoSSR = dynamic<PdfArticleContainerProps>(
|
||||
() => import('./../../../components/templates/article/PdfArticleContainer'),
|
||||
|
|
@ -318,7 +318,7 @@ export default function Home(): JSX.Element {
|
|||
/>
|
||||
</ReaderHeader>
|
||||
|
||||
{article?.contentReader == 'PDF' && <HeaderSpacer />}
|
||||
{article?.contentReader == 'PDF' && <PdfHeaderSpacer />}
|
||||
|
||||
<VStack
|
||||
distribution="between"
|
||||
|
|
|
|||
Loading…
Reference in a new issue