made adaptive heigth in connectors config component (#1583)
Co-authored-by: Anton Zorin <zorii4@Antons-MacBook-Pro.local>
This commit is contained in:
parent
164d33b707
commit
445dc3e270
3 changed files with 1 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -2,10 +2,7 @@
|
|||
|
||||
exports[`Config view matches snapshot 1`] = `
|
||||
.c0 {
|
||||
padding: 16px;
|
||||
margin: 16px;
|
||||
border: 1px solid #F1F2F3;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
<div
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue