Tophness2022 commited on
Commit
b7fde17
·
1 Parent(s): 6a8b005

fix styling corruption from image thumbnails

Browse files
Files changed (1) hide show
  1. gradio_server.py +19 -16
gradio_server.py CHANGED
@@ -2662,28 +2662,31 @@ def create_demo():
2662
  #queue_df td:nth-child(1) {
2663
  width: 100px;
2664
  }
2665
- #queue_df td:nth-child(6) {
2666
- width: auto;
2667
- min-width: 200px;
2668
- }
2669
- #queue_df td:nth-child(7),
2670
- #queue_df td:nth-child(8),
2671
- #queue_df td:nth-child(9) {
2672
  cursor: pointer;
2673
  text-align: center;
2674
- font-weight: bold;
 
 
 
2675
  width: 60px;
2676
- text-align: center;
2677
  padding: 2px !important;
2678
  cursor: pointer;
 
 
2679
  }
2680
- #queue_df td:nth-child(10) img,
2681
- #queue_df td:nth-child(11) img {
2682
- max-width: 50px;
2683
- max-height: 50px;
2684
- object-fit: contain;
2685
- display: block;
2686
- margin: auto;
2687
  }
2688
  #image-modal-container {
2689
  position: fixed;
 
2662
  #queue_df td:nth-child(1) {
2663
  width: 100px;
2664
  }
2665
+ #queue_df td:nth-child(7) img,
2666
+ #queue_df td:nth-child(8) img,
2667
+ max-width: 50px;
2668
+ max-height: 50px;
2669
+ object-fit: contain;
2670
+ display: block;
2671
+ margin: auto;
2672
  cursor: pointer;
2673
  text-align: center;
2674
+ }
2675
+ #queue_df td:nth-child(9),
2676
+ #queue_df td:nth-child(10),
2677
+ #queue_df td:nth-child(11) {
2678
  width: 60px;
 
2679
  padding: 2px !important;
2680
  cursor: pointer;
2681
+ text-align: center;
2682
+ font-weight: bold;
2683
  }
2684
+ #queue_df td:nth-child(7):hover,
2685
+ #queue_df td:nth-child(8):hover,
2686
+ #queue_df td:nth-child(9):hover,
2687
+ #queue_df td:nth-child(10):hover,
2688
+ #queue_df td:nth-child(11):hover {
2689
+ background-color: #e0e0e0;
 
2690
  }
2691
  #image-modal-container {
2692
  position: fixed;