From 4e522cf300ed62d945e6539a22fc82321934ad4f Mon Sep 17 00:00:00 2001 From: kron Date: Mon, 16 Jun 2025 11:26:57 +0800 Subject: [PATCH] =?UTF-8?q?UI=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PlayersRow.vue | 3 +++ src/components/UserHeader.vue | 24 ++++++++++++++++-------- src/pages/first-try.vue | 14 ++++++++++++-- src/pages/my-device.vue | 8 ++++++++ src/pages/user.vue | 8 +++++++- 5 files changed, 46 insertions(+), 11 deletions(-) diff --git a/src/components/PlayersRow.vue b/src/components/PlayersRow.vue index f6372c2..6417382 100644 --- a/src/components/PlayersRow.vue +++ b/src/components/PlayersRow.vue @@ -115,6 +115,9 @@ defineProps({ overflow: hidden; width: 120px; transition: all 0.3s linear; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } .avatar { width: 40px; diff --git a/src/components/UserHeader.vue b/src/components/UserHeader.vue index c553737..4bdd888 100644 --- a/src/components/UserHeader.vue +++ b/src/components/UserHeader.vue @@ -35,7 +35,12 @@ const toUserPage = () => { @@ -82,7 +88,7 @@ const toUserPage = () => { .user-details { display: flex; flex-direction: column; - padding-left: 5px; + padding-left: 10px; } .user-name { @@ -92,7 +98,7 @@ const toUserPage = () => { } .user-name > text:first-child { - font-size: 16px; + font-size: 13px; max-width: 100px; white-space: nowrap; overflow: hidden; @@ -115,7 +121,7 @@ const toUserPage = () => { } .level-tag-first { - width: 45px; + width: 40px; background: #5f51ff; } @@ -127,7 +133,7 @@ const toUserPage = () => { .level-tag, .rank-tag { border-radius: 12px; - font-size: 10px; + font-size: 9px; } .rank-tag { @@ -156,6 +162,8 @@ const toUserPage = () => { position: relative; color: #b3b3b3; padding-left: 8px; + display: flex; + flex-direction: column; } .rank-info-image { diff --git a/src/pages/first-try.vue b/src/pages/first-try.vue index 7afc4c0..ca21a71 100644 --- a/src/pages/first-try.vue +++ b/src/pages/first-try.vue @@ -26,6 +26,7 @@ const stepButtonTexts = [ "", "退出新手试炼", ]; +const title = ref("新手试炼场"); const start = ref(false); const practiseResult = ref({}); const power = ref(0); @@ -68,12 +69,16 @@ onUnmounted(() => { const nextStep = async () => { if (step.value === 0) { step.value = 1; + title.value = "凹造型"; } else if (step.value === 1) { btnDisabled.value = true; step.value = 2; + title.value = "感知距离"; } else if (step.value === 2) { step.value = 3; + title.value = "小试牛刀"; } else if (step.value === 3) { + title.value = "新手试炼场"; scores.value = []; await createPractise(total); step.value = 4; @@ -96,9 +101,14 @@ const onClose = () => {