Mikhael Johanes commited on
Commit
6c51318
·
1 Parent(s): 7c5f52b

fix buttons in mobile dev

Browse files
Files changed (1) hide show
  1. app.py +16 -9
app.py CHANGED
@@ -155,17 +155,17 @@ for i in range(3):
155
 
156
 
157
 
158
- upleft = rows[0][0].button('upleft', use_container_width=True)
159
- up = rows[0][1].button('up', use_container_width=True)
160
- upright = rows[0][2].button('upright', use_container_width=True)
161
- left = rows[1][0].button('left', use_container_width=True)
162
  undo = rows[1][1].button('undo', use_container_width=True)
163
- right = rows[1][2].button('right', use_container_width=True)
164
- downleft = rows[2][0].button('downleft', use_container_width=True)
165
- down = rows[2][1].button('down', use_container_width=True)
166
- downright = rows[2][2].button('downright', use_container_width=True)
167
 
168
- st.text("use desktop mode for best experiece in mobile device")
169
 
170
  seed = st.number_input('seed', 0, 10000000, st.session_state.seed,1)
171
 
@@ -252,4 +252,11 @@ if undo:
252
 
253
  cont.image(st.session_state.image)
254
 
 
255
 
 
 
 
 
 
 
 
155
 
156
 
157
 
158
+ upleft = rows[0][0].button('$\\nwarrow$', use_container_width=True)
159
+ up = rows[0][1].button('$\\uparrow$', use_container_width=True)
160
+ upright = rows[0][2].button('$\\nearrow$', use_container_width=True)
161
+ left = rows[1][0].button('$\\leftarrow$', use_container_width=True)
162
  undo = rows[1][1].button('undo', use_container_width=True)
163
+ right = rows[1][2].button('$\\rightarrow$', use_container_width=True)
164
+ downleft = rows[2][0].button('$\\swarrow$', use_container_width=True)
165
+ down = rows[2][1].button('$\\downarrow$', use_container_width=True)
166
+ downright = rows[2][2].button('$\\searrow$', use_container_width=True)
167
 
168
+ # st.text("use desktop mode for best experiece in mobile device")
169
 
170
  seed = st.number_input('seed', 0, 10000000, st.session_state.seed,1)
171
 
 
252
 
253
  cont.image(st.session_state.image)
254
 
255
+ st.write('''<style>
256
 
257
+ [data-testid="column"] {
258
+ width: calc(33.3333% - 1rem) !important;
259
+ flex: 1 1 calc(33.3333% - 1rem) !important;
260
+ min-width: calc(33% - 1rem) !important;
261
+ }
262
+ </style>''', unsafe_allow_html=True)