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 2/5] 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' } } From 628fdc52c4fd86c51305c2432552408967d79a66 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 25 Dec 2025 09:57:09 +0000 Subject: [PATCH 3/5] Refactor: Extract HITOKOTO_FONT_RATIO to module-level constant Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com> --- src/components/HitokotoCard.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/HitokotoCard.vue b/src/components/HitokotoCard.vue index 21e1563..48251ab 100644 --- a/src/components/HitokotoCard.vue +++ b/src/components/HitokotoCard.vue @@ -50,6 +50,9 @@ const GLOBAL_SENSITIVE_WORDS_ENCODED = [ // 解码敏感词列表 const GLOBAL_SENSITIVE_WORDS = GLOBAL_SENSITIVE_WORDS_ENCODED.map(word => Base64.decode(word)) +// 一言字体大小比例(相对于全局字体大小) +const HITOKOTO_FONT_RATIO = 0.85 // Hitokoto font size is 85% of the general font size + export default { name: 'HitokotoCard', data() { @@ -71,7 +74,6 @@ 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 * HITOKOTO_FONT_RATIO}px`, 'white-space': 'pre-wrap', @@ -80,7 +82,6 @@ export default { } }, 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 * HITOKOTO_FONT_RATIO * AUTHOR_FONT_RATIO}px`, From 13e188c9b12f1fa74d6f8744598bd221e79d3e2f Mon Sep 17 00:00:00 2001 From: Sunwuyuan Date: Thu, 25 Dec 2025 17:57:57 +0800 Subject: [PATCH 4/5] Update Hitokoto font size ratio Adjust Hitokoto font size ratio from 0.85 to 0.75. --- src/components/HitokotoCard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HitokotoCard.vue b/src/components/HitokotoCard.vue index 48251ab..275f538 100644 --- a/src/components/HitokotoCard.vue +++ b/src/components/HitokotoCard.vue @@ -51,7 +51,7 @@ const GLOBAL_SENSITIVE_WORDS_ENCODED = [ const GLOBAL_SENSITIVE_WORDS = GLOBAL_SENSITIVE_WORDS_ENCODED.map(word => Base64.decode(word)) // 一言字体大小比例(相对于全局字体大小) -const HITOKOTO_FONT_RATIO = 0.85 // Hitokoto font size is 85% of the general font size +const HITOKOTO_FONT_RATIO = 0.75 // Hitokoto font size is 85% of the general font size export default { name: 'HitokotoCard', From b873486dde0137a4f98ea5a922b4fa752e4f27dc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 25 Dec 2025 10:00:27 +0000 Subject: [PATCH 5/5] Fix comment to match actual font size ratio (75%) Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com> --- 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 275f538..6cbf3fd 100644 --- a/src/components/HitokotoCard.vue +++ b/src/components/HitokotoCard.vue @@ -50,8 +50,8 @@ const GLOBAL_SENSITIVE_WORDS_ENCODED = [ // 解码敏感词列表 const GLOBAL_SENSITIVE_WORDS = GLOBAL_SENSITIVE_WORDS_ENCODED.map(word => Base64.decode(word)) -// 一言字体大小比例(相对于全局字体大小) -const HITOKOTO_FONT_RATIO = 0.75 // Hitokoto font size is 85% of the general font size +// 一言字体大小比例(75%的全局字体大小) +const HITOKOTO_FONT_RATIO = 0.75 export default { name: 'HitokotoCard',