mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Reader header height should not take pinned searches into account
This fixes an issue where the PDF toolbar can be covered by an "invisible" header element.
This commit is contained in:
parent
6101eaab6c
commit
54ca861545
1 changed files with 5 additions and 3 deletions
|
|
@ -3,7 +3,10 @@ import { Button } from '../../elements/Button'
|
|||
import { PrimaryDropdown } from '../PrimaryDropdown'
|
||||
import { LogoBox } from '../../elements/LogoBox'
|
||||
import { ReactNode } from 'react'
|
||||
import { useGetHeaderHeight } from '../homeFeed/HeaderSpacer'
|
||||
import {
|
||||
DEFAULT_HEADER_HEIGHT,
|
||||
useGetHeaderHeight,
|
||||
} from '../homeFeed/HeaderSpacer'
|
||||
import { theme } from '../../tokens/stitches.config'
|
||||
import { ReaderSettingsIcon } from '../../elements/icons/ReaderSettingsIcon'
|
||||
import { CircleUtilityMenuIcon } from '../../elements/icons/CircleUtilityMenuIcon'
|
||||
|
|
@ -16,7 +19,6 @@ type ReaderHeaderProps = {
|
|||
}
|
||||
|
||||
export function ReaderHeader(props: ReaderHeaderProps): JSX.Element {
|
||||
const headerHeight = useGetHeaderHeight()
|
||||
return (
|
||||
<>
|
||||
<VStack
|
||||
|
|
@ -29,7 +31,7 @@ export function ReaderHeader(props: ReaderHeaderProps): JSX.Element {
|
|||
pt: '0px',
|
||||
position: 'fixed',
|
||||
width: '100%',
|
||||
height: headerHeight,
|
||||
height: DEFAULT_HEADER_HEIGHT,
|
||||
display: props.alwaysDisplayToolbar ? 'flex' : 'transparent',
|
||||
pointerEvents: props.alwaysDisplayToolbar ? 'unset' : 'none',
|
||||
borderBottom: '1px solid transparent',
|
||||
|
|
|
|||
Loading…
Reference in a new issue