|
| 1 | +import { Listbox, Transition } from '@headlessui/react'; |
| 2 | +import { CheckIcon, SelectorIcon } from '@heroicons/react/solid'; |
1 | 3 | import { DateTime } from 'luxon';
|
2 | 4 | import React, { Fragment, useState } from 'react';
|
3 | 5 | import Gravatar from 'react-gravatar';
|
4 |
| -import { CheckIcon, SelectorIcon } from '@heroicons/react/solid'; |
| 6 | +import { languagesFilterList } from '../../assets/languages'; |
5 | 7 | import { useLeaderboardList } from '../../hooks/leaderboard';
|
6 |
| -import { Listbox, Transition } from '@headlessui/react'; |
7 | 8 | import LeaderboardModel from './LeaderboardModel';
|
8 |
| -import { languagesFilterList } from '../../assets/languages'; |
9 | 9 |
|
10 | 10 | function classNames(...classes: string[]) {
|
11 | 11 | return classes.filter(Boolean).join(' ');
|
@@ -56,7 +56,7 @@ const Leaderboard: React.FC<LeaderboardProps> = ({ benchmarkId }) => {
|
56 | 56 | {/*<Listbox.Label className="block text-sm font-medium text-gray-700">*/}
|
57 | 57 | {/* Languages filter*/}
|
58 | 58 | {/*</Listbox.Label>*/}
|
59 |
| - <div className="mt-1 relative"> |
| 59 | + <div className="mb-4 w-36 relative"> |
60 | 60 | <Listbox.Button className="relative w-full bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm">
|
61 | 61 | <span className="flex items-center">
|
62 | 62 | <img
|
@@ -111,7 +111,7 @@ const Leaderboard: React.FC<LeaderboardProps> = ({ benchmarkId }) => {
|
111 | 111 | <span
|
112 | 112 | className={
|
113 | 113 | selected
|
114 |
| - ? 'font-semibold' |
| 114 | + ? 'font-semibold ml-3 block truncate' |
115 | 115 | : 'font-normal ml-3 block truncate'
|
116 | 116 | }
|
117 | 117 | >
|
|
0 commit comments