fix: preferences on mobile webview when zoomed in (#1731)
This commit is contained in:
@@ -21,7 +21,7 @@ const Advanced: FunctionComponent<Props> = ({ application, viewControllerManager
|
|||||||
<PreferencesSegment>
|
<PreferencesSegment>
|
||||||
<AccordionItem title={'Advanced Options'}>
|
<AccordionItem title={'Advanced Options'}>
|
||||||
<div className="flex flex-row items-center">
|
<div className="flex flex-row items-center">
|
||||||
<div className="flex flex-grow flex-col">
|
<div className="flex max-w-full flex-grow flex-col">
|
||||||
<OfflineSubscription application={application} viewControllerManager={viewControllerManager} />
|
<OfflineSubscription application={application} viewControllerManager={viewControllerManager} />
|
||||||
<PackagesPreferencesSection
|
<PackagesPreferencesSection
|
||||||
className={'mt-3'}
|
className={'mt-3'}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import Button from '@/Components/Button/Button'
|
||||||
import { FunctionComponent, useState, useRef, useEffect } from 'react'
|
import { FunctionComponent, useState, useRef, useEffect } from 'react'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@@ -39,7 +40,7 @@ const PackageEntrySubInfo: FunctionComponent<Props> = ({ extensionName, changeNa
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mr-3 flex flex-row items-center">
|
<div className="flex flex-row flex-wrap items-center gap-3">
|
||||||
<input
|
<input
|
||||||
ref={inputRef}
|
ref={inputRef}
|
||||||
disabled={!isRenaming || !renameable}
|
disabled={!isRenaming || !renameable}
|
||||||
@@ -50,24 +51,21 @@ const PackageEntrySubInfo: FunctionComponent<Props> = ({ extensionName, changeNa
|
|||||||
onChange={({ target: input }) => setNewExtensionName((input as HTMLInputElement)?.value)}
|
onChange={({ target: input }) => setNewExtensionName((input as HTMLInputElement)?.value)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="min-w-3" />
|
|
||||||
|
|
||||||
{isRenaming && (
|
{isRenaming && (
|
||||||
<>
|
<>
|
||||||
<a className="cursor-pointer pt-1" onClick={confirmRename}>
|
<Button small className="cursor-pointer" onClick={confirmRename}>
|
||||||
Confirm
|
Confirm
|
||||||
</a>
|
</Button>
|
||||||
<div className="min-w-3" />
|
<Button small className="cursor-pointer" onClick={cancelRename}>
|
||||||
<a className="cursor-pointer pt-1" onClick={cancelRename}>
|
|
||||||
Cancel
|
Cancel
|
||||||
</a>
|
</Button>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{renameable && !isRenaming && (
|
{renameable && !isRenaming && (
|
||||||
<a className="cursor-pointer pt-1" onClick={startRenaming}>
|
<Button small className="cursor-pointer" onClick={startRenaming}>
|
||||||
Rename
|
Rename
|
||||||
</a>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,7 +3,9 @@ import { FunctionComponent, ReactNode } from 'react'
|
|||||||
const PreferencesGroup: FunctionComponent<{
|
const PreferencesGroup: FunctionComponent<{
|
||||||
children: ReactNode
|
children: ReactNode
|
||||||
}> = ({ children }) => (
|
}> = ({ 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
|
export default PreferencesGroup
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { FunctionComponent, ReactNode } from 'react'
|
|||||||
const PreferencesPane: FunctionComponent<{ children?: ReactNode }> = ({ children }) => (
|
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 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-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}
|
{children != undefined && Array.isArray(children) ? children.filter((child) => child != undefined) : children}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user