From 618a2288b7ba9859f128741fcd6d6a39ce8eab10 Mon Sep 17 00:00:00 2001 From: Season Date: Mon, 20 Jul 2026 19:34:25 +0800 Subject: [PATCH] Nudge figure-mode question text below the card rim Chinese prompt sat flush with the rounded top edge; drop ZH/EN and the figure slightly so the title keeps padding inside the panel. --- game/assets/src/questions/QuestionView.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/game/assets/src/questions/QuestionView.ts b/game/assets/src/questions/QuestionView.ts index 7579187..8b9f7f5 100644 --- a/game/assets/src/questions/QuestionView.ts +++ b/game/assets/src/questions/QuestionView.ts @@ -67,13 +67,15 @@ export class QuestionView { // step layout below is untouched. const figureModel = resolveFigureView(q); if (figureModel.mode === "figure" && !turn.step) { - makeWrappedLabel(card, q.question_zh, 0, 137, 760, 56, { fontSize: 20, lineHeight: 26 }); - makeWrappedLabel(card, q.question_en, 0, 93, 760, 30, { + // Card half-height is 165; keep ~16px pad under the rounded top so + // the ZH line doesn't sit on the stroke. + makeWrappedLabel(card, q.question_zh, 0, 122, 760, 52, { fontSize: 20, lineHeight: 26 }); + makeWrappedLabel(card, q.question_en, 0, 82, 760, 30, { fontSize: 15, color: PALETTE.sub, lineHeight: 19, }); - renderFigure(card, figureModel.spec, { x: 0, y: -38, width: 740, height: 190 }); + renderFigure(card, figureModel.spec, { x: 0, y: -42, width: 740, height: 190 }); } else { this.buildProse(card); }