From c616ea81c6765c3b78e8b7bc28f591b31bfd18bb Mon Sep 17 00:00:00 2001
From: Azalea <22280294+hykilpikonna@users.noreply.github.com>
Date: Wed, 17 Apr 2024 00:03:35 +0900
Subject: [PATCH] [S] Make b35 look better
---
AquaNet/src/components/MapDetails.svelte | 33 ++++++++++++++----------
AquaNet/src/libs/ui.ts | 2 +-
AquaNet/src/pages/UserHome.svelte | 14 +++++++---
3 files changed, 31 insertions(+), 18 deletions(-)
diff --git a/AquaNet/src/components/MapDetails.svelte b/AquaNet/src/components/MapDetails.svelte
index b81c6803..ae01fd7f 100644
--- a/AquaNet/src/components/MapDetails.svelte
+++ b/AquaNet/src/components/MapDetails.svelte
@@ -17,21 +17,21 @@
let mult = getMult(mapData[3], game)
let mapRank = parseFloat(meta.notes?.[mapData[1] === 10 ? 0 : mapData[1]]?.lv?.toFixed(1) ?? mapData[1] ?? '0')
-
+
-
+
{meta.name ?? t("UserHome.UnknownSong")}
{ mapRank }
-
+
-
+
{("" + getMult(mapData[3], game)[2]).replace("p", "+")}
{(mapData[3] / 10000).toFixed(2)}%
@@ -45,16 +45,17 @@
-
+
-
\ No newline at end of file
diff --git a/AquaNet/src/libs/ui.ts b/AquaNet/src/libs/ui.ts
index 14fe0c74..8aa26e93 100644
--- a/AquaNet/src/libs/ui.ts
+++ b/AquaNet/src/libs/ui.ts
@@ -119,7 +119,7 @@ export function tooltip(element: HTMLElement, params: { text: string } | string)
// Initially hidden
div.style.display = 'none'
-
+
document.body.appendChild(div)
}
diff --git a/AquaNet/src/pages/UserHome.svelte b/AquaNet/src/pages/UserHome.svelte
index 1b908ebb..d631f587 100644
--- a/AquaNet/src/pages/UserHome.svelte
+++ b/AquaNet/src/pages/UserHome.svelte
@@ -230,13 +230,12 @@
-
+
B35
-
+
{#each d.user.ratingComposition.best35.split(",") as map}
-
-
+
{/each}
@@ -529,4 +528,11 @@ $gap: 20px
&:before
content: "+"
color: $c-good
+
+.b35
+ display: grid
+ // 3 columns
+ grid-template-columns: repeat(auto-fill, minmax(260px, 1fr))
+ gap: $gap
+