Amber Tanaka commited on
Commit
f909e70
·
unverified ·
1 Parent(s): afb9b4c

change id to class (#31)

Browse files
Files changed (2) hide show
  1. content.py +2 -2
  2. ui_components.py +1 -1
content.py CHANGED
@@ -412,7 +412,7 @@ span.wrap[tabindex="0"][role="button"][data-editable="false"] {
412
  align-items: center !important;
413
  gap: 20px !important;
414
  }
415
- #scroll-up-button {
416
  flex-grow: 0;
417
  display: flex;
418
  color: #032629;
@@ -423,7 +423,7 @@ span.wrap[tabindex="0"][role="button"][data-editable="false"] {
423
  padding-bottom: 2px;
424
  min-width: 50px;
425
  }
426
- .dark #scroll-up-button {
427
  color: #faf2e9;
428
  background-color: #032629;
429
  }
 
412
  align-items: center !important;
413
  gap: 20px !important;
414
  }
415
+ .scroll-up-button {
416
  flex-grow: 0;
417
  display: flex;
418
  color: #032629;
 
423
  padding-bottom: 2px;
424
  min-width: 50px;
425
  }
426
+ .dark .scroll-up-button {
427
  color: #faf2e9;
428
  background-color: #032629;
429
  }
ui_components.py CHANGED
@@ -386,7 +386,7 @@ def create_benchmark_details_display(
386
  gr.Markdown(f"### {benchmark_name} Leaderboard", header_links=True)
387
  scroll_up_button = gr.Button(
388
  value="⬆",
389
- elem_id="scroll-up-button",
390
  )
391
  # When the button is clicked, it runs our JavaScript function. No Python needed.
392
  scroll_up_button.click(fn=None, js=scroll_to_top_js)
 
386
  gr.Markdown(f"### {benchmark_name} Leaderboard", header_links=True)
387
  scroll_up_button = gr.Button(
388
  value="⬆",
389
+ elem_classes="scroll-up-button",
390
  )
391
  # When the button is clicked, it runs our JavaScript function. No Python needed.
392
  scroll_up_button.click(fn=None, js=scroll_to_top_js)