From 250d1b6e4044d7b8969878beee9d91cf7eb6f459 Mon Sep 17 00:00:00 2001 From: skytek_xinliang Date: Tue, 23 Jun 2026 09:59:44 +0800 Subject: [PATCH] style: self assessment --- .../src/components/layout/DefaultLayout.vue | 3 +- app/citizen-frontend/src/pages/index.vue | 17 +-- .../src/pages/self-assessment.vue | 105 +++++++----------- app/citizen-frontend/src/stores/app.ts | 2 - 4 files changed, 49 insertions(+), 78 deletions(-) diff --git a/app/citizen-frontend/src/components/layout/DefaultLayout.vue b/app/citizen-frontend/src/components/layout/DefaultLayout.vue index 1eec672..223df88 100644 --- a/app/citizen-frontend/src/components/layout/DefaultLayout.vue +++ b/app/citizen-frontend/src/components/layout/DefaultLayout.vue @@ -335,8 +335,7 @@ function handleLogout () { .v-list-item-title, .v-btn, - .v-card-title, - .text-subtitle-1 { + .text-title-medium { font-size: 1.25rem !important; line-height: unset !important; } diff --git a/app/citizen-frontend/src/pages/index.vue b/app/citizen-frontend/src/pages/index.vue index 0678f03..023049e 100644 --- a/app/citizen-frontend/src/pages/index.vue +++ b/app/citizen-frontend/src/pages/index.vue @@ -130,9 +130,7 @@ - 下肢肌力:坐站起立訓練 + 下肢肌力:坐站起立訓練 每週 2 次,每次 3 組,每組 10-12 次。
@@ -145,9 +143,7 @@ - 靜態平衡:扶椅單腳站立 + 靜態平衡:扶椅單腳站立 每週 3 次,左右腳各 30 秒,重複 3 次。
@@ -176,8 +172,7 @@ color="primary" variant="flat" @click="prescriptionDialog = false" - >確認關閉 + >確認關閉 @@ -260,7 +255,7 @@ const prescriptionDialog = ref(false) const displayedHealthScore = ref(1) let healthScoreTimer: number | undefined -function animateHealthScore(targetScore: number) { +function animateHealthScore (targetScore: number) { if (healthScoreTimer !== undefined) { window.clearInterval(healthScoreTimer) } @@ -298,9 +293,9 @@ onBeforeUnmount(() => { watch( () => store.healthScore, - (score) => { + score => { animateHealthScore(score) - } + }, ) const todayTimeString = computed(() => { diff --git a/app/citizen-frontend/src/pages/self-assessment.vue b/app/citizen-frontend/src/pages/self-assessment.vue index 3b97233..7ae2afb 100644 --- a/app/citizen-frontend/src/pages/self-assessment.vue +++ b/app/citizen-frontend/src/pages/self-assessment.vue @@ -1,10 +1,13 @@