andfanilo / streamlit-drawable-canvas

Do you like Quick, Draw? Well what if you could train/predict doodles drawn inside Streamlit? Also draws lines, circles and boxes over background images for annotation.
https://drawable-canvas.streamlit.app/
MIT License
576 stars 88 forks source link

Change the size of the canvas dynamically based on screen resolution. #59

Closed murtazabasu closed 3 years ago

murtazabasu commented 3 years ago

Hello,

Is it possible to adjust the size of the canvas based on screen resolution (something like viewport in html)?

When I run the application on my laptop, the canvas looks pretty normal. But when I try to use it on an ipad or mobile, the canvas looks enlarged and its not so convenient to use it. It would be really great if the canvas could adjust automatically to screens of different resolutions.

andfanilo commented 3 years ago

Hello @murtazabasu ,

Not yet possible and a dupe of #39 :) I'll have to get back to it sometime this month. Hope you don't mind if I close this in favor for the original one!

Have a nice day, Fanilo