aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-29 05:16:09 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-29 05:16:09 +0800
commit7479a7db58f5504416a88450c92b092899bf3df3 (patch)
treed935c318a1df3ad7b3c63850be81c6a0c1c8a653 /packages/instant/src
parent6e3378d79f3edf46a24cacbe2ec920e0caaf5a93 (diff)
downloaddexon-0x-contracts-7479a7db58f5504416a88450c92b092899bf3df3.tar
dexon-0x-contracts-7479a7db58f5504416a88450c92b092899bf3df3.tar.gz
dexon-0x-contracts-7479a7db58f5504416a88450c92b092899bf3df3.tar.bz2
dexon-0x-contracts-7479a7db58f5504416a88450c92b092899bf3df3.tar.lz
dexon-0x-contracts-7479a7db58f5504416a88450c92b092899bf3df3.tar.xz
dexon-0x-contracts-7479a7db58f5504416a88450c92b092899bf3df3.tar.zst
dexon-0x-contracts-7479a7db58f5504416a88450c92b092899bf3df3.zip
fix: dont allow price labels to wrap
Diffstat (limited to 'packages/instant/src')
-rw-r--r--packages/instant/src/components/instant_heading.tsx11
1 files changed, 9 insertions, 2 deletions
diff --git a/packages/instant/src/components/instant_heading.tsx b/packages/instant/src/components/instant_heading.tsx
index ace577824..808c6dc7f 100644
--- a/packages/instant/src/components/instant_heading.tsx
+++ b/packages/instant/src/components/instant_heading.tsx
@@ -107,7 +107,14 @@ export class InstantHeading extends React.Component<InstantHeadingProps, {}> {
private readonly _renderEthAmount = (): React.ReactNode => {
return (
- <Text fontSize="16px" textAlign="right" width="100%" fontColor={ColorOption.white} fontWeight={500}>
+ <Text
+ fontSize="16px"
+ textAlign="right"
+ width="100%"
+ fontColor={ColorOption.white}
+ fontWeight={500}
+ noWrap={true}
+ >
{format.ethBaseUnitAmount(
this.props.totalEthBaseUnitAmount,
4,
@@ -119,7 +126,7 @@ export class InstantHeading extends React.Component<InstantHeadingProps, {}> {
private readonly _renderDollarAmount = (): React.ReactNode => {
return (
- <Text fontSize="16px" textAlign="right" width="100%" fontColor={ColorOption.white}>
+ <Text fontSize="16px" textAlign="right" width="100%" fontColor={ColorOption.white} noWrap={true}>
{format.ethBaseUnitAmountInUsd(
this.props.totalEthBaseUnitAmount,
this.props.ethUsdPrice,