diff --git a/kraken-app/kraken-app-portal/src/components/form/AutoGrowingInput.tsx b/kraken-app/kraken-app-portal/src/components/form/AutoGrowingInput.tsx index 61f4a048..1b32a11c 100644 --- a/kraken-app/kraken-app-portal/src/components/form/AutoGrowingInput.tsx +++ b/kraken-app/kraken-app-portal/src/components/form/AutoGrowingInput.tsx @@ -4,7 +4,7 @@ import { useEffect, useState } from "react"; import { InputProps } from "antd"; export function AutoGrowingInput({ - prefix, suffix, className, value, placeholder, onChange, onBlur, ...rest + prefix, suffix, className, value, placeholder,disabled, onChange, onBlur, ...rest }: Readonly<{ value?: string; onChange?: (value: string) => void } & Omit>) { const [text, setText] = useState('') const [isFocused, setIsFocused] = useState(false) @@ -34,7 +34,7 @@ export function AutoGrowingInput({ onBlur?.(e as any) }} onKeyDown={e => { - if (e.key === 'Enter') { + if (e.key === 'Enter' || disabled) { e.preventDefault() } }} /> diff --git a/kraken-app/kraken-app-portal/src/pages/MappingTemplate/components/VersionSelect/DetailDrawer.tsx b/kraken-app/kraken-app-portal/src/pages/MappingTemplate/components/VersionSelect/DetailDrawer.tsx index e2a4db9e..df02b8a2 100644 --- a/kraken-app/kraken-app-portal/src/pages/MappingTemplate/components/VersionSelect/DetailDrawer.tsx +++ b/kraken-app/kraken-app-portal/src/pages/MappingTemplate/components/VersionSelect/DetailDrawer.tsx @@ -40,6 +40,8 @@ export function DetailDrawer({ deploymentId, ...props }: Readonly loading={isLoading} rowKey={record => record.mapperKey} + tableLayout="fixed" + scroll={{ x: 500 }} columns={[ { title: "Mapping use case", @@ -55,7 +57,7 @@ export function DetailDrawer({ deploymentId, ...props }: Readonly , },