kennethormandy / kennethormandy/react-fittext
Successive renders reapply compressor
- Dominant language
- JavaScript
- Stars
- 73
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
If i resize the window with this component in with a `compressor value` of <0 the text keeps shrinking and shrinking until its almost invisible
The same for text that is >1.
Resizes cause it to grow and grow.
This issue didn't happen with `react-fittext`. (I'm trying to do a direct swap of your component with theirs.)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the component's handling of the `compressor` value and reproduce the behavior by resizing with values below 0 and above 1. Done means successive resizes no longer keep shrinking or growing the text, while the component remains suitable as a direct replacement for `react-fittext`.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100