From a0baca4d1f752cc205d0bb99aac4e5445f619904 Mon Sep 17 00:00:00 2001 From: Mati Dastugue Date: Wed, 5 Aug 2020 18:35:33 -0300 Subject: [PATCH] Add styles for full output --- .../RenderOutputParams/index.tsx | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/RenderOutputParams/index.tsx b/src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/RenderOutputParams/index.tsx index 1e637d37..bc7e7ed5 100644 --- a/src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/RenderOutputParams/index.tsx +++ b/src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/RenderOutputParams/index.tsx @@ -1,12 +1,26 @@ import React from 'react' import { useField } from 'react-final-form' +import { withStyles } from '@material-ui/core/styles' import TextField from 'src/components/forms/TextField' import Col from 'src/components/layout/Col' import Paragraph from 'src/components/layout/Paragraph' import Row from 'src/components/layout/Row' -const RenderOutputParams = () => { +const styles = () => ({ + output: { + '& > div': { + '& > textarea': { + letterSpacing: '-0.5px', + lineHeight: '20px', + height: '40px', + overflowY: 'auto', + }, + }, + }, +}) + +const RenderOutputParams = ({ classes }) => { const { input: { value: method }, }: any = useField('selectedMethod', { subscription: { value: true } }) @@ -31,7 +45,10 @@ const RenderOutputParams = () => { { ) : null } -export default RenderOutputParams +export default withStyles(styles as any)(RenderOutputParams)