Tophness2022 commited on
Commit
90fc871
·
1 Parent(s): 4dbd601

improve styling (4)

Browse files
Files changed (1) hide show
  1. gradio_server.py +65 -8
gradio_server.py CHANGED
@@ -2715,8 +2715,11 @@ def create_demo():
2715
  }
2716
  #queue_df th {
2717
  pointer-events: none;
 
 
2718
  }
2719
  #queue_df table {
 
2720
  overflow: hidden !important;
2721
  }
2722
  #queue_df::-webkit-scrollbar {
@@ -2726,27 +2729,81 @@ def create_demo():
2726
  scrollbar-width: none !important;
2727
  -ms-overflow-style: none !important;
2728
  }
 
2729
  #queue_df td:nth-child(1) {
2730
- width: 100px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2731
  }
2732
  #queue_df td:nth-child(7) img,
2733
- #queue_df td:nth-child(8) img,
2734
  max-width: 50px;
2735
  max-height: 50px;
2736
  object-fit: contain;
2737
  display: block;
2738
- margin: auto;
2739
  cursor: pointer;
2740
- text-align: center;
2741
  }
2742
- #queue_df td:nth-child(9),
2743
- #queue_df td:nth-child(10),
2744
- #queue_df td:nth-child(11) {
2745
- width: 60px;
2746
  padding: 2px !important;
2747
  cursor: pointer;
2748
  text-align: center;
2749
  font-weight: bold;
 
2750
  }
2751
  #queue_df td:nth-child(7):hover,
2752
  #queue_df td:nth-child(8):hover,
 
2715
  }
2716
  #queue_df th {
2717
  pointer-events: none;
2718
+ text-align: center;
2719
+ vertical-align: middle;
2720
  }
2721
  #queue_df table {
2722
+ width: 100%;
2723
  overflow: hidden !important;
2724
  }
2725
  #queue_df::-webkit-scrollbar {
 
2729
  scrollbar-width: none !important;
2730
  -ms-overflow-style: none !important;
2731
  }
2732
+ #queue_df th:nth-child(1),
2733
  #queue_df td:nth-child(1) {
2734
+ width: 90px;
2735
+ text-align: center;
2736
+ vertical-align: middle;
2737
+ }
2738
+ #queue_df th:nth-child(1) {
2739
+ font-size: 0.8em;
2740
+ }
2741
+ #queue_df th:nth-child(2),
2742
+ #queue_df td:nth-child(2) {
2743
+ width: 85px;
2744
+ text-align: center;
2745
+ vertical-align: middle;
2746
+ }
2747
+ #queue_df th:nth-child(2) {
2748
+ font-size: 0.5em;
2749
+ }
2750
+ #queue_df th:nth-child(3),
2751
+ #queue_df td:nth-child(3) {
2752
+ width: 75px;
2753
+ text-align: center;
2754
+ vertical-align: middle;
2755
+ }
2756
+ #queue_df th:nth-child(3) {
2757
+ font-size: 0.6em;
2758
+ }
2759
+ #queue_df th:nth-child(4),
2760
+ #queue_df td:nth-child(4) {
2761
+ width: 65px;
2762
+ text-align: center;
2763
+ white-space: nowrap;
2764
+ }
2765
+ #queue_df th:nth-child(4) {
2766
+ font-size: 0.9em;
2767
+ }
2768
+ #queue_df th:nth-child(5),
2769
+ #queue_df td:nth-child(5) {
2770
+ width: 60px;
2771
+ text-align: center;
2772
+ white-space: nowrap;
2773
+ }
2774
+ #queue_df th:nth-child(6),
2775
+ #queue_df td:nth-child(6) {
2776
+ width: auto;
2777
+ text-align: center;
2778
+ white-space: normal;
2779
+ }
2780
+ #queue_df th:nth-child(6) {
2781
+ font-size: 0.8em;
2782
+ }
2783
+ #queue_df th:nth-child(7), #queue_df td:nth-child(7),
2784
+ #queue_df th:nth-child(8), #queue_df td:nth-child(8) {
2785
+ width: 60px;
2786
+ text-align: center;
2787
+ vertical-align: middle;
2788
  }
2789
  #queue_df td:nth-child(7) img,
2790
+ #queue_df td:nth-child(8) img {
2791
  max-width: 50px;
2792
  max-height: 50px;
2793
  object-fit: contain;
2794
  display: block;
2795
+ margin: auto;
2796
  cursor: pointer;
 
2797
  }
2798
+ #queue_df th:nth-child(9), #queue_df td:nth-child(9),
2799
+ #queue_df th:nth-child(10), #queue_df td:nth-child(10),
2800
+ #queue_df th:nth-child(11), #queue_df td:nth-child(11) {
2801
+ width: 20px;
2802
  padding: 2px !important;
2803
  cursor: pointer;
2804
  text-align: center;
2805
  font-weight: bold;
2806
+ vertical-align: middle;
2807
  }
2808
  #queue_df td:nth-child(7):hover,
2809
  #queue_df td:nth-child(8):hover,