yizhangliu commited on
Commit
92808ba
·
1 Parent(s): ff323a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -281,7 +281,12 @@ start_cleaner = """async() => {
281
 
282
  } else {
283
  max_height = 800;
284
- image_upload.setAttribute('style', 'min-height: ' + max_height + 'px; overflow: overlay');
 
 
 
 
 
285
  data_image.setAttribute('style', 'height: ' + max_height + 'px');
286
  data_image_div.setAttribute('style', 'min-height: ' + max_height + 'px');
287
 
 
281
 
282
  } else {
283
  max_height = 800;
284
+
285
+ const container = gradioEl.querySelectorAll('.container')[0];
286
+ container.setAttribute('style', 'max-width: 100%;');
287
+
288
+ //image_upload.setAttribute('style', 'min-height: ' + max_height + 'px; overflow: overlay');
289
+
290
  data_image.setAttribute('style', 'height: ' + max_height + 'px');
291
  data_image_div.setAttribute('style', 'min-height: ' + max_height + 'px');
292