Przeglądaj źródła

fix: upload file not clickable in firefox (#1552)

tags/0.3.31
crazywoola 1 rok temu
rodzic
commit
19fc9e3466
No account linked to committer's email address

+ 2
- 2
web/app/components/app/configuration/dataset-config/params-config/index.tsx Wyświetl plik

<PortalToFollowElemContent style={{ zIndex: 50 }}> <PortalToFollowElemContent style={{ zIndex: 50 }}>
<div className='w-[240px] p-4 bg-white rounded-lg border-[0.5px] border-gray-200 shadow-lg space-y-3'> <div className='w-[240px] p-4 bg-white rounded-lg border-[0.5px] border-gray-200 shadow-lg space-y-3'>
{PARAMS_KEY.map((key: string) => { {PARAMS_KEY.map((key: string) => {
const currentValue = key === 'top_k' ? datasetConfigs[key] : (datasetConfigs as any)[key].value
const currentEnableState = key === 'top_k' ? true : (datasetConfigs as any)[key].enable
const currentValue = key === 'top_k' ? datasetConfigs[key] : (datasetConfigs as any)[key]?.value
const currentEnableState = key === 'top_k' ? true : (datasetConfigs as any)[key]?.enable
return ( return (
<ParamItem <ParamItem
key={key} key={key}

+ 1
- 1
web/app/components/base/image-uploader/uploader.tsx Wyświetl plik

{children(hovering)} {children(hovering)}
<input <input
className={` className={`
absolute block inset-0 opacity-0 text-[0]
absolute block inset-0 opacity-0 text-[0] w-full
${disabled ? 'cursor-not-allowed' : 'cursor-pointer'} ${disabled ? 'cursor-not-allowed' : 'cursor-pointer'}
`} `}
onClick={e => (e.target as HTMLInputElement).value = ''} onClick={e => (e.target as HTMLInputElement).value = ''}

+ 178
- 571
web/yarn.lock
Plik diff jest za duży
Wyświetl plik


Ładowanie…
Anuluj
Zapisz