From 1ca0606485f122b6da25a45274272cef27f2eb3a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 25 Dec 2025 09:55:50 +0000 Subject: [PATCH] Make Hitokoto font size smaller (85% of general font size) Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com> --- src/components/HitokotoCard.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/HitokotoCard.vue b/src/components/HitokotoCard.vue index a031cf2..21e1563 100644 --- a/src/components/HitokotoCard.vue +++ b/src/components/HitokotoCard.vue @@ -71,17 +71,19 @@ export default { }, computed: { contentStyle() { + const HITOKOTO_FONT_RATIO = 0.85 // Hitokoto font size is 85% of the general font size return { - 'font-size': `${this.fontSize}px`, + 'font-size': `${this.fontSize * HITOKOTO_FONT_RATIO}px`, 'white-space': 'pre-wrap', 'line-height': '1.6', 'text-align': 'left' } }, authorStyle() { + const HITOKOTO_FONT_RATIO = 0.85 // Hitokoto font size is 85% of the general font size 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 * HITOKOTO_FONT_RATIO * AUTHOR_FONT_RATIO}px`, 'text-align': 'left' } }