Skip to content

Commit 933b43b

Browse files
committed
尝试修复前端显示问题
1 parent ac3f4b5 commit 933b43b

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

web/src/views/ConverterView.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ const isApiFormValid = computed(() => {
205205

206206
<template>
207207
<div class="flex flex-col gap-6">
208-
<Section title="数据转换">
208+
<Section title="数据转换" expend>
209209
<Tabs v-model:value="activeTab">
210210
<TabPane name="api" tab="API 模式">
211211
<div class="flex flex-col gap-4 mt-4">
@@ -307,14 +307,14 @@ const isApiFormValid = computed(() => {
307307
</Section>
308308

309309
<!-- Progress Output -->
310-
<Section v-if="progressMessages.length > 0" title="运行日志">
310+
<Section v-if="progressMessages.length > 0" title="运行日志" expend>
311311
<div class="font-mono text-sm max-h-48 overflow-y-auto" style="color: var(--text-secondary)">
312312
<div v-for="(msg, i) in progressMessages" :key="i">[{{ new Date().toLocaleTimeString() }}] {{ msg }}</div>
313313
</div>
314314
</Section>
315315

316316
<!-- Success Output -->
317-
<Section v-if="conversionResult" title="转换成功!" style="border-color: var(--success-color); box-shadow: 0 0 15px var(--success-bg)">
317+
<Section v-if="conversionResult" title="转换成功!" expend style="border-color: var(--success-color); box-shadow: 0 0 15px var(--success-bg)">
318318
<div class="stats-grid mt-2">
319319
<div class="stat-card">
320320
<div class="stat-value">{{ resultStats.scores }}</div>

web/src/views/VisualizerView.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ const getRankName = (score: number) => {
303303
<template>
304304
<div class="flex flex-col gap-6">
305305
<!-- Upload Section if no data -->
306-
<Section v-if="!munetData" title="数据可视化">
306+
<Section v-if="!munetData" title="数据可视化" expend>
307307
<div class="text-center py-10" style="padding: 4rem 2rem;">
308308
<p class="mb-6" style="color: var(--text-secondary)">上传 MuNET 格式的 JSON 导出文件,分析你的游玩数据。</p>
309309

@@ -350,7 +350,7 @@ const getRankName = (score: number) => {
350350
</div>
351351

352352
<!-- Player Info Card -->
353-
<Section style="background: var(--primary-gradient); color: white; border: none;">
353+
<Section expend style="background: var(--primary-gradient); color: white; border: none;">
354354
<div class="flex" style="flex-wrap: wrap; gap: 2rem; align-items: center;">
355355
<div style="flex: 1; min-width: 200px;">
356356
<div style="font-size: 0.875rem; opacity: 0.8;">PLAYER</div>
@@ -399,20 +399,20 @@ const getRankName = (score: number) => {
399399

400400
<!-- Charts -->
401401
<div class="charts-grid">
402-
<Section title="成绩分布">
402+
<Section title="成绩分布" expend>
403403
<div class="chart-container" style="height: 280px; padding: 0; background: transparent; border: none;">
404404
<Bar :data="scoreDistData" :options="barChartOptions" />
405405
</div>
406406
</Section>
407-
<Section title="难度分布">
407+
<Section title="难度分布" expend>
408408
<div class="chart-container" style="height: 280px; padding: 0; background: transparent; border: none;">
409409
<Doughnut :data="diffDistData" :options="commonOptions" />
410410
</div>
411411
</Section>
412412
</div>
413413

414414
<!-- Detailed Table -->
415-
<Section :title="`游玩详情 (共 ${sortedMusicList.length} 首)`">
415+
<Section :title="`游玩详情 (共 ${sortedMusicList.length} 首)`" expend>
416416
<div class="table-container">
417417
<table>
418418
<thead>

0 commit comments

Comments
 (0)