mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Adjust reader down a bit for the expanded header size
This commit is contained in:
parent
a9c6b13279
commit
fbc42361b6
1 changed files with 10 additions and 7 deletions
|
|
@ -108,12 +108,15 @@ export function ArticleContainer(props: ArticleContainerProps): JSX.Element {
|
|||
const [showReportIssuesModal, setShowReportIssuesModal] = useState(false)
|
||||
const [fontSize, setFontSize] = useState(props.fontSize ?? 20)
|
||||
// iOS app embed can overide the original margin and line height
|
||||
const [maxWidthPercentageOverride, setMaxWidthPercentageOverride] =
|
||||
useState<number | null>(null)
|
||||
const [lineHeightOverride, setLineHeightOverride] =
|
||||
useState<number | null>(null)
|
||||
const [fontFamilyOverride, setFontFamilyOverride] =
|
||||
useState<string | null>(null)
|
||||
const [maxWidthPercentageOverride, setMaxWidthPercentageOverride] = useState<
|
||||
number | null
|
||||
>(null)
|
||||
const [lineHeightOverride, setLineHeightOverride] = useState<number | null>(
|
||||
null
|
||||
)
|
||||
const [fontFamilyOverride, setFontFamilyOverride] = useState<string | null>(
|
||||
null
|
||||
)
|
||||
const [highContrastFont, setHighContrastFont] = useState(
|
||||
props.highContrastFont ?? false
|
||||
)
|
||||
|
|
@ -276,7 +279,7 @@ export function ArticleContainer(props: ArticleContainerProps): JSX.Element {
|
|||
id="article-container"
|
||||
css={{
|
||||
padding: '16px',
|
||||
paddingTop: '52px',
|
||||
paddingTop: '70px',
|
||||
maxWidth: `${styles.maxWidthPercentage ?? 100}%`,
|
||||
background: props.isAppleAppEmbed
|
||||
? 'unset'
|
||||
|
|
|
|||
Loading…
Reference in a new issue