mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #2448 from omnivore-app/fix/web-very-narrow-screens
Fix reader header on very narrow screens like the Samsung Fold
This commit is contained in:
commit
fc15a0a6b4
2 changed files with 6 additions and 2 deletions
|
|
@ -115,8 +115,6 @@ export function HighlightView(props: HighlightViewProps): JSX.Element {
|
|||
css={{
|
||||
'*': {
|
||||
m: '0px',
|
||||
display: 'inline',
|
||||
padding: '2px',
|
||||
backgroundColor: `rgba(var(--colors-highlightBackground), ${highlightAlpha})`,
|
||||
boxShadow: `3px 0 0 rgba(var(--colors-highlightBackground), ${highlightAlpha}), -3px 0 0 rgba(var(--colors-highlightBackground), ${highlightAlpha})`,
|
||||
boxDecorationBreak: 'clone',
|
||||
|
|
|
|||
|
|
@ -65,6 +65,9 @@ export function ReaderHeader(props: ReaderHeaderProps): JSX.Element {
|
|||
display: props.alwaysDisplayToolbar ? 'flex' : 'none',
|
||||
},
|
||||
'@mdDown': { px: '15px' },
|
||||
'@media (max-width: 300px)': {
|
||||
display: 'none',
|
||||
},
|
||||
}}
|
||||
>
|
||||
{props.children}
|
||||
|
|
@ -76,6 +79,9 @@ export function ReaderHeader(props: ReaderHeaderProps): JSX.Element {
|
|||
'@lgDown': {
|
||||
display: 'none',
|
||||
},
|
||||
'@media (max-width: 300px)': {
|
||||
display: 'flex',
|
||||
},
|
||||
}}
|
||||
>
|
||||
<ControlButtonBox {...props} />
|
||||
|
|
|
|||
Loading…
Reference in a new issue