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>
|
||||
<AccordionItem title={'Advanced Options'}>
|
||||
<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} />
|
||||
<PackagesPreferencesSection
|
||||
className={'mt-3'}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import Button from '@/Components/Button/Button'
|
||||
import { FunctionComponent, useState, useRef, useEffect } from 'react'
|
||||
|
||||
type Props = {
|
||||
@@ -39,7 +40,7 @@ const PackageEntrySubInfo: FunctionComponent<Props> = ({ extensionName, changeNa
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="mr-3 flex flex-row items-center">
|
||||
<div className="flex flex-row flex-wrap items-center gap-3">
|
||||
<input
|
||||
ref={inputRef}
|
||||
disabled={!isRenaming || !renameable}
|
||||
@@ -50,24 +51,21 @@ const PackageEntrySubInfo: FunctionComponent<Props> = ({ extensionName, changeNa
|
||||
onChange={({ target: input }) => setNewExtensionName((input as HTMLInputElement)?.value)}
|
||||
/>
|
||||
|
||||
<div className="min-w-3" />
|
||||
|
||||
{isRenaming && (
|
||||
<>
|
||||
<a className="cursor-pointer pt-1" onClick={confirmRename}>
|
||||
<Button small className="cursor-pointer" onClick={confirmRename}>
|
||||
Confirm
|
||||
</a>
|
||||
<div className="min-w-3" />
|
||||
<a className="cursor-pointer pt-1" onClick={cancelRename}>
|
||||
</Button>
|
||||
<Button small className="cursor-pointer" onClick={cancelRename}>
|
||||
Cancel
|
||||
</a>
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
|
||||
{renameable && !isRenaming && (
|
||||
<a className="cursor-pointer pt-1" onClick={startRenaming}>
|
||||
<Button small className="cursor-pointer" onClick={startRenaming}>
|
||||
Rename
|
||||
</a>
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user