lastdefiance20 commited on
Commit
41c1f73
1 Parent(s): 52692e6

Fix gradio bug

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. css_html_js.py +16 -0
app.py CHANGED
@@ -38,8 +38,8 @@ with gr.Blocks(title=f'{benchname} Leaderboard', css=custom_css) as demo:
38
  type='pandas',
39
  datatype=datatypes,
40
  interactive=False,
41
- wrap=True,
42
  visible=True,
 
43
  column_widths=colwidths,
44
  )
45
 
 
38
  type='pandas',
39
  datatype=datatypes,
40
  interactive=False,
 
41
  visible=True,
42
+ max_height=700,
43
  column_widths=colwidths,
44
  )
45
 
css_html_js.py CHANGED
@@ -88,4 +88,20 @@ table th:first-child {
88
  #box-filter > .form{
89
  border: 0
90
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  """
 
88
  #box-filter > .form{
89
  border: 0
90
  }
91
+ .main a {
92
+ color: blue;
93
+ text-decoration: underline;
94
+ }
95
+
96
+ @media (min-width: 1536px)
97
+ {
98
+ .gradio-container {
99
+ min-width: var(--size-full) !important;
100
+ }
101
+ }
102
+ th .header-content
103
+ {
104
+ white-space: normal;
105
+ overflow-wrap: break-word;
106
+ }
107
  """