Compare commits
2 Commits
ad162cbe3f
...
1ab07709ac
Author | SHA1 | Date | |
---|---|---|---|
1ab07709ac | |||
40d5bcf86d |
@ -146,10 +146,7 @@ export default function GlobalRanking({ page, country }: GlobalRankingProps) {
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody className="border-none">
|
<tbody className="border-none">
|
||||||
{players.map((player) => (
|
{players.map((player) => (
|
||||||
<tr
|
<tr key={player.rank} className="border-b border-border">
|
||||||
key={player.rank}
|
|
||||||
className="border-b border-gray-700"
|
|
||||||
>
|
|
||||||
<PlayerRanking
|
<PlayerRanking
|
||||||
showCountryFlag={country ? false : true}
|
showCountryFlag={country ? false : true}
|
||||||
player={player}
|
player={player}
|
||||||
@ -165,7 +162,7 @@ export default function GlobalRanking({ page, country }: GlobalRankingProps) {
|
|||||||
{players.map((player) => (
|
{players.map((player) => (
|
||||||
<div
|
<div
|
||||||
key={player.rank}
|
key={player.rank}
|
||||||
className="flex flex-col gap-2 rounded-md bg-gray-700 hover:bg-gray-600"
|
className="flex flex-col gap-2 rounded-md bg-background"
|
||||||
>
|
>
|
||||||
<Link href={`/player/${player.id}/top/1`}>
|
<Link href={`/player/${player.id}/top/1`}>
|
||||||
<PlayerRankingMobile player={player} />
|
<PlayerRankingMobile player={player} />
|
||||||
|
@ -46,7 +46,7 @@ function FriendsButton() {
|
|||||||
<NavbarButton
|
<NavbarButton
|
||||||
ariaLabel="View your friends"
|
ariaLabel="View your friends"
|
||||||
text="Friends"
|
text="Friends"
|
||||||
icon={<UserIcon height={20} width={20} />}
|
icon={<UserIcon height={23} width={23} />}
|
||||||
/>
|
/>
|
||||||
</PopoverTrigger>
|
</PopoverTrigger>
|
||||||
<PopoverContent className="p-2">
|
<PopoverContent className="p-2">
|
||||||
@ -107,7 +107,7 @@ export default function Navbar() {
|
|||||||
<Avatar
|
<Avatar
|
||||||
url={settingsStore.player.profilePicture}
|
url={settingsStore.player.profilePicture}
|
||||||
label="Your avatar"
|
label="Your avatar"
|
||||||
size={20}
|
size={23}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
href={`/player/${settingsStore.player.id}/top/1`}
|
href={`/player/${settingsStore.player.id}/top/1`}
|
||||||
@ -126,13 +126,13 @@ export default function Navbar() {
|
|||||||
<NavbarButton
|
<NavbarButton
|
||||||
ariaLabel="View the global ranking"
|
ariaLabel="View the global ranking"
|
||||||
text="Ranking"
|
text="Ranking"
|
||||||
icon={<GlobeAltIcon height={20} width={20} />}
|
icon={<GlobeAltIcon height={23} width={23} />}
|
||||||
href="/ranking/global/1"
|
href="/ranking/global/1"
|
||||||
/>
|
/>
|
||||||
<NavbarButton
|
<NavbarButton
|
||||||
ariaLabel="View analytics for Scoresaber"
|
ariaLabel="View analytics for Scoresaber"
|
||||||
text="Analytics"
|
text="Analytics"
|
||||||
icon={<ServerIcon height={20} width={20} />}
|
icon={<ServerIcon height={23} width={23} />}
|
||||||
href="/analytics"
|
href="/analytics"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@ -141,13 +141,13 @@ export default function Navbar() {
|
|||||||
<NavbarButton
|
<NavbarButton
|
||||||
ariaLabel="Search for a player"
|
ariaLabel="Search for a player"
|
||||||
text="Search"
|
text="Search"
|
||||||
icon={<MagnifyingGlassIcon height={20} width={20} />}
|
icon={<MagnifyingGlassIcon height={23} width={23} />}
|
||||||
href="/search"
|
href="/search"
|
||||||
/>
|
/>
|
||||||
<NavbarButton
|
<NavbarButton
|
||||||
ariaLabel="View your settings"
|
ariaLabel="View your settings"
|
||||||
text="Settings"
|
text="Settings"
|
||||||
icon={<CogIcon height={20} width={20} />}
|
icon={<CogIcon height={23} width={23} />}
|
||||||
href="/settings"
|
href="/settings"
|
||||||
/>
|
/>
|
||||||
</Card>
|
</Card>
|
||||||
|
@ -128,7 +128,7 @@ export default function Scores({ playerData, page, sortType }: ScoresProps) {
|
|||||||
<Spinner />
|
<Spinner />
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="grid grid-cols-1 divide-y divide-gray-700">
|
<div className="grid grid-cols-1 divide-y divide-border">
|
||||||
{!scores.loading && scores.scores.length == 0 ? (
|
{!scores.loading && scores.scores.length == 0 ? (
|
||||||
<p className="text-red-400">{errorMessage}</p>
|
<p className="text-red-400">{errorMessage}</p>
|
||||||
) : (
|
) : (
|
||||||
|
Reference in New Issue
Block a user