mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-09 04:57:27 +08:00
[+] Display rating details
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
import StatusOverlays from "../components/StatusOverlays.svelte";
|
||||
import Icon from "@iconify/svelte";
|
||||
import { GAME_TITLE, t } from "../libs/i18n";
|
||||
import RankDetails from "../components/RankDetails.svelte";
|
||||
|
||||
const TREND_DAYS = 60
|
||||
|
||||
@@ -40,6 +41,8 @@
|
||||
validGames: [ string, string ][]
|
||||
} | null
|
||||
|
||||
let showDetailRank = false
|
||||
|
||||
USER.isLoggedIn() && USER.me().then(u => me = u)
|
||||
|
||||
|
||||
@@ -131,7 +134,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info-bottom">
|
||||
<div class="info-bottom clickable" use:tooltip={t("UserHome.ShowRanksDetails")}
|
||||
on:click={() => showDetailRank = !showDetailRank} role="button" tabindex="0"
|
||||
on:keydown={e => e.key === "Enter" && (showDetailRank = !showDetailRank)}>
|
||||
{#each d.user.ranks as r}
|
||||
<div>
|
||||
<span>{r.name}</span>
|
||||
@@ -170,6 +175,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{#if showDetailRank}<RankDetails g={d.user}/>{/if}
|
||||
|
||||
<div>
|
||||
<h2>{t('UserHome.PlayActivity')}</h2>
|
||||
<div class="activity-info">
|
||||
@@ -308,6 +315,9 @@ $gap: 20px
|
||||
letter-spacing: 0.1em
|
||||
color: $c-main
|
||||
|
||||
.info-bottom
|
||||
width: max-content
|
||||
|
||||
.info-top > div > span:last-child
|
||||
font-size: 1.5rem
|
||||
|
||||
|
||||
Reference in New Issue
Block a user