Scale message to fit in Timer
The issue
Currently, the timer view shows the messages from the Editor in a fixed size. This means that, with enough text content, the view overflows and the messages are not readable.
Since this is screen specific, there is no way for the editor to know of the overflow, which makes matters worse
The task
The issue task is to modify the message display to always fit the message on the screen
Follow here for the code entrypoint We also have a copy of useFitText which could potentially be used here
Clarification: the text should always fit the screen regardless of how many words it contains. If it contains too many words, the text size should be resized until it can fit the screen. Does that sound correct?
Is there a limit to the characters? What if someone pastes the entirety of War and Peace?
Clarification: the text should always fit the screen regardless of how many words it contains. If it contains too many words, the text size should be resized until it can fit the screen. Does that sound correct?
Is there a limit to the characters? What is someone pastes the entirety of War and Peace?
Hi!
Yes. We should make sure that the text always takes the whole size to fit. The text should be able to break lines as needed though
We don't enforce limits. We likely will need (and want) upper and lower limits on font-size for the algorithm. War and peace might not workout...
I think any reasonable defaults are good enough. If we don't have anything in mind something between 16px-128px sounds good to me
Done and released in v3.5.0