Canvas size no limitations
flabbet opened this issue · comments
Krzysztof Krysiński commented
Describe the bug
So right now, create new pixel doesn't have any restrains. I can put anything there, and in result editor breaks, there is no canvas.
To Reproduce
Steps to reproduce the behavior:
- Go to https://apps.lospec.com/pixel-editor/
- Enter -123 to width and 9999 to height
- Click Create
Expected behavior
Input should forbit user to enter invalid values.
Desktop (please complete the following information):
- OS: Windows 11
- Browser: Brave
- Version: 1.35.103 Chromium: 98.0.4758.102 (Official Build) (64-bit)](https://brave.com/latest/)
Nicola commented
Note to myself: write a few input validation functions so that we can reuse them
Amrit Rai commented
Can you please assign this issue to me?
Nicola commented
Done, thanks for offering :)