aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/ui
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-24 11:02:50 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-24 11:05:43 +0800
commit47737d4d0fce56454c9ee2b43782b824b88cb942 (patch)
tree808d167f371963ad858002a7bb631c7a8906d029 /packages/instant/src/components/ui
parent2e184f081e546acbc8ed3e5e05de5a9e5b56a3d8 (diff)
downloaddexon-sol-tools-47737d4d0fce56454c9ee2b43782b824b88cb942.tar
dexon-sol-tools-47737d4d0fce56454c9ee2b43782b824b88cb942.tar.gz
dexon-sol-tools-47737d4d0fce56454c9ee2b43782b824b88cb942.tar.bz2
dexon-sol-tools-47737d4d0fce56454c9ee2b43782b824b88cb942.tar.lz
dexon-sol-tools-47737d4d0fce56454c9ee2b43782b824b88cb942.tar.xz
dexon-sol-tools-47737d4d0fce56454c9ee2b43782b824b88cb942.tar.zst
dexon-sol-tools-47737d4d0fce56454c9ee2b43782b824b88cb942.zip
feat: cover more token symbol edge cases
Diffstat (limited to 'packages/instant/src/components/ui')
-rw-r--r--packages/instant/src/components/ui/container.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/instant/src/components/ui/container.tsx b/packages/instant/src/components/ui/container.tsx
index 293042120..e44cfff1e 100644
--- a/packages/instant/src/components/ui/container.tsx
+++ b/packages/instant/src/components/ui/container.tsx
@@ -26,6 +26,7 @@ export interface ContainerProps {
backgroundColor?: ColorOption;
hasBoxShadow?: boolean;
zIndex?: number;
+ whiteSpace?: string;
}
export const Container = styled<ContainerProps, 'div'>('div')`
@@ -50,6 +51,7 @@ export const Container = styled<ContainerProps, 'div'>('div')`
${props => cssRuleIfExists(props, 'border-top')}
${props => cssRuleIfExists(props, 'border-bottom')}
${props => cssRuleIfExists(props, 'z-index')}
+ ${props => cssRuleIfExists(props, 'white-space')}
${props => (props.hasBoxShadow ? `box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1)` : '')};
background-color: ${props => (props.backgroundColor ? props.theme[props.backgroundColor] : 'none')};
border-color: ${props => (props.borderColor ? props.theme[props.borderColor] : 'none')};