From d2db187bf41d1c9be6e09cf23c96d4a6b7b97fe3 Mon Sep 17 00:00:00 2001 From: Sunwuyuan Date: Thu, 25 Dec 2025 17:50:43 +0800 Subject: [PATCH] Adjust font size in HitokotoCard component --- src/components/HitokotoCard.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/HitokotoCard.vue b/src/components/HitokotoCard.vue index a031cf2..f9ea4a9 100644 --- a/src/components/HitokotoCard.vue +++ b/src/components/HitokotoCard.vue @@ -72,7 +72,7 @@ export default { computed: { contentStyle() { return { - 'font-size': `${this.fontSize}px`, + 'font-size': `${this.fontSize-4}px`, 'white-space': 'pre-wrap', 'line-height': '1.6', 'text-align': 'left' @@ -81,7 +81,7 @@ export default { authorStyle() { const AUTHOR_FONT_RATIO = 0.6 // Author font size is 60% of the main font size return { - 'font-size': `${this.fontSize * AUTHOR_FONT_RATIO}px`, + 'font-size': `${(this.fontSize-4 )* AUTHOR_FONT_RATIO}px`, 'text-align': 'left' } }