|
|
@ -7,7 +7,7 @@ import Text from 'components/base/Text' |
|
|
|
const outerStyle = { width: 0 } |
|
|
|
const innerStyle = { overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' } |
|
|
|
|
|
|
|
export default ({ children, canSelect, ...p }: { children: any, canSelect: * }) => ( |
|
|
|
export default ({ children, canSelect, ...p }: { children: any, canSelect?: boolean }) => ( |
|
|
|
<Box grow horizontal> |
|
|
|
<Box grow {...p} style={outerStyle}> |
|
|
|
<Text style={{ ...innerStyle, userSelect: canSelect ? 'text' : 'none' }}>{children}</Text> |
|
|
|