소스 검색

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

crazywoola 1 년 전
부모
커밋
19fc9e3466
3개의 변경된 파일151개의 추가작업 그리고 406개의 파일을 삭제
  1. 2 2
      web/app/components/app/configuration/dataset-config/params-config/index.tsx
  2. 1 1
      web/app/components/base/image-uploader/uploader.tsx
  3. 148 403
      web/yarn.lock

+ 2 - 2
web/app/components/app/configuration/dataset-config/params-config/index.tsx

@@ -157,8 +157,8 @@ const ParamsConfig: FC = () => {
       <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'>
           {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 (
               <ParamItem
                 key={key}

+ 1 - 1
web/app/components/base/image-uploader/uploader.tsx

@@ -85,7 +85,7 @@ const Uploader: FC<UploaderProps> = ({
       {children(hovering)}
       <input
         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'}
         `}
         onClick={e => (e.target as HTMLInputElement).value = ''}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 148 - 403
web/yarn.lock


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.