I’m a coding/python beginner.
I have written a game in python and managed to get it work in the browser with anvil.
It looks fine on a desktop screen and on a tablet, but on a smartphone you can’t see the complete game; it doesn’t scale to fit the mobile screen and there isn’t even a scrollbar to scroll from left to right.
It has many buttons and I have build it completely in code (in the xy panel).
What can I do to make the game work on smartphone screens?
I already tried Colum Panel (and Grid Panel). If I understand it correctly, buttons created with code can only be arranged one below the other in Colum Panels (and not 5 in a row).
The buttons should keep their place to one another, otherwise the game would be very hard to play.
I will try to make everything smaller (if I ever manage to change the width of the buttons. I suppose I will have to change the size of the buttons in the CSS of the theme? It doesn’t seem to change the size if I use the “width=” keyword when creating the buttons.)
I tried Flow Panel, but it is not what I need. The buttons should stay in their places.
I will try to build a smaller version for the smartphone.
Thank you for your help.
I found something like a solution:
I made everything smaller by reducing the width of the buttons in the theme.css (here I describe how I did it: Change the width of the buttons - #2 by CFerret).
Now it woks on the smartphone and looks quite ok on the computer desktop.