fix
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-08-05 13:38:52 -06:00
parent 17dbd7a4a7
commit 425bab1c15

View File

@@ -9,6 +9,7 @@ import type {
AchievementSummary, AchievementSummary,
} from "utils/types" } from "utils/types"
import AchievementCard from "./components/AchievementCard.vue" import AchievementCard from "./components/AchievementCard.vue"
import { NH2, NH4 } from "naive-ui"
interface UserBadge { interface UserBadge {
id: number id: number
@@ -80,7 +81,6 @@ watch(name, load)
<template> <template>
<div class="hall"> <div class="hall">
<n-card v-if="summary"> <n-card v-if="summary">
<!-- 窄屏也不折行圆环缩小间距收窄抬头始终一行 -->
<n-flex align="center" :wrap="false" :size="isDesktop ? 32 : 16"> <n-flex align="center" :wrap="false" :size="isDesktop ? 32 : 16">
<n-flex vertical align="center" :size="6"> <n-flex vertical align="center" :size="6">
<n-progress <n-progress
@@ -88,7 +88,9 @@ watch(name, load)
:percentage="summary.percent" :percentage="summary.percent"
:stroke-width="8" :stroke-width="8"
> >
{{ summary.percent }}% <component :is="isDesktop ? NH2 : NH4">
{{ summary.percent }}%
</component>
</n-progress> </n-progress>
<n-text depth="3" class="nowrap"> <n-text depth="3" class="nowrap">
已获得 {{ summary.unlocked }} / {{ summary.total }} 已获得 {{ summary.unlocked }} / {{ summary.total }}
@@ -124,7 +126,7 @@ watch(name, load)
</n-flex> </n-flex>
</n-card> </n-card>
<n-tabs v-model:value="tab" type="line" class="tabs"> <n-tabs v-model:value="tab" animated type="line" class="tabs">
<n-tab name="all">全部</n-tab> <n-tab name="all">全部</n-tab>
<n-tab name="unlocked">已获得</n-tab> <n-tab name="unlocked">已获得</n-tab>
<n-tab name="locked">未获得</n-tab> <n-tab name="locked">未获得</n-tab>
@@ -181,7 +183,6 @@ watch(name, load)
margin: 0 auto; margin: 0 auto;
padding: 16px; padding: 16px;
} }
/* 卡片有 1100px 宽,不封顶的话 6px 高的细条会被拉到近 900px读起来很空 */
.rarity { .rarity {
flex: 1; flex: 1;
max-width: 420px; max-width: 420px;