fix leaderboard arrow on mobile showing a backgrounf when pressed
All checks were successful
Deploy SSR / deploy (push) Successful in 1m13s
All checks were successful
Deploy SSR / deploy (push) Successful in 1m13s
This commit is contained in:
parent
33b270ab0b
commit
a3fa98b184
@ -11,7 +11,11 @@ type Props = {
|
|||||||
export default function LeaderboardButton({ isLeaderboardExpanded, setIsLeaderboardExpanded }: Props) {
|
export default function LeaderboardButton({ isLeaderboardExpanded, setIsLeaderboardExpanded }: Props) {
|
||||||
return (
|
return (
|
||||||
<div className="pr-2 flex items-center justify-center h-full">
|
<div className="pr-2 flex items-center justify-center h-full">
|
||||||
<Button className="p-0" variant="ghost" onClick={() => setIsLeaderboardExpanded(!isLeaderboardExpanded)}>
|
<Button
|
||||||
|
className="p-0 hover:bg-transparent"
|
||||||
|
variant="ghost"
|
||||||
|
onClick={() => setIsLeaderboardExpanded(!isLeaderboardExpanded)}
|
||||||
|
>
|
||||||
<ArrowDownIcon
|
<ArrowDownIcon
|
||||||
className={clsx("w-6 h-6 transition-all transform-gpu", isLeaderboardExpanded ? "" : "rotate-180")}
|
className={clsx("w-6 h-6 transition-all transform-gpu", isLeaderboardExpanded ? "" : "rotate-180")}
|
||||||
/>
|
/>
|
||||||
|
Reference in New Issue
Block a user