react-text-transition icon indicating copy to clipboard operation
react-text-transition copied to clipboard

Recalculate element width/height on window resize

Open South-Paw opened this issue 1 year ago • 3 comments

Hi,

I believe this addresses #32 and fixes the element sizing when the window is resized.

To keep it performant, I've added the use-debounce package, defaulted the debounce to 50ms and added an option for users to configure the debounce if required.

Tested on my website and seems to have resolved the odd sizing when I played with the window size and the font changes size between different breakpoints.

Thanks 👍

South-Paw avatar Jul 31 '23 05:07 South-Paw

Note that the yarn.lock will need updating and feel free to make any tweaks/formatting changes too.

South-Paw avatar Jul 31 '23 05:07 South-Paw

@WinterCore - would love to use your library but the issue regarding resizing behaviour may require us to use something else. Could you review this pull request?

swijckmans avatar Nov 09 '23 23:11 swijckmans

Great job on this PR

BRGustavoRibeiro avatar Nov 10 '23 21:11 BRGustavoRibeiro