made adaptive heigth in connectors config component (#1583)

Co-authored-by: Anton Zorin <zorii4@Antons-MacBook-Pro.local>
This commit is contained in:
Zorii4 2022-02-10 15:07:03 +03:00 committed by GitHub
parent 164d33b707
commit 445dc3e270
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 8 deletions

View file

@ -28,10 +28,7 @@ export interface ConfigProps {
}
const ConnectConfigWrapper = styled.div`
padding: 16px;
margin: 16px;
border: 1px solid ${({ theme }) => theme.layout.stuffColor};
border-radius: 8px;
`;
const Config: React.FC<ConfigProps> = ({
@ -50,7 +47,6 @@ const Config: React.FC<ConfigProps> = ({
}
if (!config) return null;
return (
<ConnectConfigWrapper>
<Editor

View file

@ -2,10 +2,7 @@
exports[`Config view matches snapshot 1`] = `
.c0 {
padding: 16px;
margin: 16px;
border: 1px solid #F1F2F3;
border-radius: 8px;
}
<div

View file

@ -29,7 +29,7 @@ const Editor = React.forwardRef<ReactAce | null, EditorProps>((props, ref) => {
fontSize={14}
height={
isFixedHeight
? `${(props.value?.split('\n').length || 32) * 16}px`
? `${(props.value?.split('\n').length || 32) * 19}px`
: '372px'
}
wrapEnabled