mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Dont autofocus the labels filter on touch devices as the keyboard uses too much screen space
This commit is contained in:
parent
d8e03c0906
commit
06551bc372
1 changed files with 2 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ import { ArticleAttributes } from '../../../lib/networking/queries/useGetArticle
|
|||
import { LabelChip } from '../../elements/LabelChip'
|
||||
import { Check, Circle, Pen, PencilSimple, PencilSimpleLine, Plus, TagSimple } from 'phosphor-react'
|
||||
import Link from 'next/link'
|
||||
import { isTouchScreenDevice } from '../../../lib/deviceType'
|
||||
|
||||
type EditLabelsModalProps = {
|
||||
// labels: Label[]
|
||||
|
|
@ -96,7 +97,7 @@ function Header(props: HeaderProps): JSX.Element {
|
|||
<FormInput
|
||||
ref={inputRef}
|
||||
type="text"
|
||||
autoFocus={true}
|
||||
autoFocus={isTouchScreenDevice()}
|
||||
value={props.filterText}
|
||||
placeholder="Filter for label"
|
||||
onFocus={(event) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue