Keep terminal completion phrase intact

This commit is contained in:
Jesse_Chen
2026-07-19 20:04:47 +08:00
parent d19a96556a
commit aeef08f79e
2 changed files with 2 additions and 2 deletions
@@ -106,7 +106,7 @@ function TerminalAction({ controller, error, path }: {
return (
<div className="birth-time-next-step">
<b></b>
<p>使 {path.time} <span className="phrase-nowrap"></span><span className="phrase-nowrap"></span><span className="phrase-nowrap"></span></p>
<p>使 {path.time} <span className="phrase-nowrap"></span><span className="phrase-nowrap"></span><span className="phrase-nowrap"></span><span className="phrase-nowrap"></span></p>
<button className="button-primary birth-time-guided-action" disabled={controller.pending} onClick={() => controller.completeCandidate(path.time)} type="button">
{controller.pending ? `正在采用 ${path.time}` : `采用 ${path.time} 并进入对话`}
</button>
@@ -140,7 +140,7 @@ test("terminal and entrypoint CJK phrases stay intact at narrow widths", () => {
const candidateResultSource = readFileSync(new URL("../src/components/birth-time-candidate-result.tsx", import.meta.url), "utf8");
const pageSource = readFileSync(new URL("../src/app/page.tsx", import.meta.url), "utf8");
assert.match(candidateResultSource, /作为<span className="phrase-nowrap">当前排盘时间<\/span>并进入对话;<span className="phrase-nowrap">原始填报<\/span>和本次<span className="phrase-nowrap">候选结果<\/span>仍会保留。/);
assert.match(candidateResultSource, /作为<span className="phrase-nowrap">当前排盘时间<\/span>并进入对话;<span className="phrase-nowrap">原始填报<\/span>和本次<span className="phrase-nowrap">候选结果<\/span><span className="phrase-nowrap">仍会保留<\/span>。/);
assert.match(pageSource, /当前使用候选时间排盘;<span className="phrase-nowrap">原始填报范围<\/span>仍保留。/);
});