rayli commited on
Commit
14c3344
·
verified ·
1 Parent(s): c517bc4

Make example tiles image-sized

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -397,9 +397,10 @@ DEMO_CSS = """
397
  }
398
  .example-preview-button {
399
  display: block !important;
 
400
  min-width: 0 !important;
401
  min-height: 0 !important;
402
- aspect-ratio: 1 / 1 !important;
403
  padding: 0 !important;
404
  border: 1px solid var(--demo-border) !important;
405
  border-radius: 6px !important;
@@ -418,7 +419,8 @@ DEMO_CSS = """
418
  .example-preview-button img {
419
  display: block !important;
420
  width: 100% !important;
421
- height: 100% !important;
 
422
  object-fit: cover !important;
423
  }
424
  .kin-panel {
 
397
  }
398
  .example-preview-button {
399
  display: block !important;
400
+ width: 100% !important;
401
  min-width: 0 !important;
402
  min-height: 0 !important;
403
+ aspect-ratio: auto !important;
404
  padding: 0 !important;
405
  border: 1px solid var(--demo-border) !important;
406
  border-radius: 6px !important;
 
419
  .example-preview-button img {
420
  display: block !important;
421
  width: 100% !important;
422
+ height: auto !important;
423
+ aspect-ratio: 1 / 1 !important;
424
  object-fit: cover !important;
425
  }
426
  .kin-panel {