react-wrap-balancer icon indicating copy to clipboard operation
react-wrap-balancer copied to clipboard

Adds leading return when creating multiple lines

Open GavanWilhite opened this issue 2 years ago • 2 comments

Do you know what's going on here?

It basically looks like it's adding a break but only when multi-line

The react code is:

  return <li key={Math.random()}>
            <Box pointerEvents={'none'} width="100%">
                <Box w={6} h={6} borderColor={brandTransparent} borderWidth={1.5} textAlign='center' borderRadius={6} position='relative' display='inline-block'><Box position='relative' top='-1px'>{typeToEmoji[objective.type]}</Box></Box>
                <strong> <Balancer ratio={0.65} as={Text}>{objective.description}</Balancer> </strong>
            </Box>
        </li>

GavanWilhite avatar Feb 17 '23 22:02 GavanWilhite

Screenshot 2023-02-17 at 2 17 10 PM Screenshot 2023-02-17 at 2 17 02 PM

GavanWilhite avatar Feb 17 '23 22:02 GavanWilhite

Could you create a reproduction on https://codesandbox.io/ or https://stackblitz.com? Thanks!

shuding avatar Mar 01 '23 23:03 shuding