From e9f938e5221d55f345b8f9db8547219ad3eb7ddc Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Wed, 19 Sep 2018 13:11:41 +0200 Subject: [PATCH] Fixed modal overflow --- src/components/modals/confirm/SignTx/index.js | 9 ++++++++- src/config/variables.js | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/modals/confirm/SignTx/index.js b/src/components/modals/confirm/SignTx/index.js index 351d0345..7b3110de 100644 --- a/src/components/modals/confirm/SignTx/index.js +++ b/src/components/modals/confirm/SignTx/index.js @@ -5,6 +5,7 @@ import P from 'components/Paragraph'; import Icon from 'components/Icon'; import icons from 'config/icons'; import { H3 } from 'components/Heading'; +import { LINE_HEIGHT } from 'config/variables'; const Wrapper = styled.div` width: 390px; @@ -21,6 +22,12 @@ const Content = styled.div` padding: 24px 48px; `; +const StyledP = styled(P)` + word-wrap: break-word; + padding: 5px 0; + line-height: ${LINE_HEIGHT.SMALL} +`; + const Label = styled.div` padding-top: 5px; font-size: 10px; @@ -49,7 +56,7 @@ const ConfirmSignTx = (props) => {

{`${amount} ${currency}` }

-

{ address }

+ { address }

{ selectedFeeLevel.label }

diff --git a/src/config/variables.js b/src/config/variables.js index 964c3873..542e6986 100644 --- a/src/config/variables.js +++ b/src/config/variables.js @@ -41,5 +41,6 @@ export const TRANSITION = { }; export const LINE_HEIGHT = { + SMALL: '1.4', BASE: '1.8', };