IjzerenHein / react-tag-cloud

Create beautiful tag/word clouds using React ☁️
https://react-tag-cloud.stackblitz.io/
MIT License
117 stars 27 forks source link

Not working fine when having nesting childs #12

Open focux opened 5 years ago

focux commented 5 years ago

For any reason, it's not working fine at version 1.1.3 when you have nested childs like this for example:

<TagCloud
    {here props}
>
  <div>
    <div>
      something
    </div>
  </div>
</TagCloud>

When you do that, you received a fixed style props width of 192px for every parent div, so if you have small words, it doesn't look good because it has too much space between words and doesn't even look like a word cloud, it looks like disorder words.