fix: preferences on mobile webview when zoomed in (#1731)

This commit is contained in:
Aman Harwara
2022-10-04 17:24:48 +05:30
committed by GitHub
parent c1e6f8027e
commit 782cbee97e
4 changed files with 13 additions and 13 deletions

View File

@@ -3,7 +3,9 @@ import { FunctionComponent, ReactNode } from 'react'
const PreferencesGroup: FunctionComponent<{
children: ReactNode
}> = ({ children }) => (
<div className="mb-3 flex flex-col rounded border border-solid border-border bg-default p-6">{children}</div>
<div className="mb-3 flex max-w-full flex-col rounded border border-solid border-border bg-default p-6">
{children}
</div>
)
export default PreferencesGroup

View File

@@ -3,7 +3,7 @@ import { FunctionComponent, ReactNode } from 'react'
const PreferencesPane: FunctionComponent<{ children?: ReactNode }> = ({ children }) => (
<div className="flex min-h-0 flex-grow flex-col overflow-y-auto text-foreground md:flex-row">
<div className="flex flex-grow flex-col items-center px-3 py-6 md:px-0">
<div className="flex flex-col md:w-125 md:max-w-125">
<div className="flex max-w-full flex-col md:w-125 md:max-w-125">
{children != undefined && Array.isArray(children) ? children.filter((child) => child != undefined) : children}
</div>
</div>