Skip to content

Commit b8f71e1

Browse files
committed
fix(leaderboard): some style fixes in the dropdown
1 parent 1d4a057 commit b8f71e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/leaderboard/Leaderboard.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import { Listbox, Transition } from '@headlessui/react';
2+
import { CheckIcon, SelectorIcon } from '@heroicons/react/solid';
13
import { DateTime } from 'luxon';
24
import React, { Fragment, useState } from 'react';
35
import Gravatar from 'react-gravatar';
4-
import { CheckIcon, SelectorIcon } from '@heroicons/react/solid';
6+
import { languagesFilterList } from '../../assets/languages';
57
import { useLeaderboardList } from '../../hooks/leaderboard';
6-
import { Listbox, Transition } from '@headlessui/react';
78
import LeaderboardModel from './LeaderboardModel';
8-
import { languagesFilterList } from '../../assets/languages';
99

1010
function classNames(...classes: string[]) {
1111
return classes.filter(Boolean).join(' ');
@@ -56,7 +56,7 @@ const Leaderboard: React.FC<LeaderboardProps> = ({ benchmarkId }) => {
5656
{/*<Listbox.Label className="block text-sm font-medium text-gray-700">*/}
5757
{/* Languages filter*/}
5858
{/*</Listbox.Label>*/}
59-
<div className="mt-1 relative">
59+
<div className="mb-4 w-36 relative">
6060
<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">
6161
<span className="flex items-center">
6262
<img
@@ -111,7 +111,7 @@ const Leaderboard: React.FC<LeaderboardProps> = ({ benchmarkId }) => {
111111
<span
112112
className={
113113
selected
114-
? 'font-semibold'
114+
? 'font-semibold ml-3 block truncate'
115115
: 'font-normal ml-3 block truncate'
116116
}
117117
>

0 commit comments

Comments
 (0)