react-fittext icon indicating copy to clipboard operation
react-fittext copied to clipboard

In a wide div with a short height the contents overflow the containing div unless a max font is specified

Open damiangreen opened this issue 6 years ago • 2 comments

In a wide div with a short height the contents overflow the containing div unless a max font is specified. I'm not sure if this is by design, but I would have thought the container should constrain it.

image

damiangreen avatar Aug 15 '18 11:08 damiangreen

look at this - https://github.com/kennethormandy/react-fittext (based on this library) they have a vertical fit text ability

MatanMaimon avatar Aug 23 '19 01:08 MatanMaimon

I've created a library that solves this, that works with react 16+ and allows for resizing of components https://github.com/damiangreen/isomorphic-react-fittext

damiangreen avatar Oct 20 '19 08:10 damiangreen