Skip to content

Commit 5cb9788

Browse files
x1hanclaude
andcommitted
test: restore forceMaxWidth review coverage
Restore the replaced config and width-fallback coverage, add guardrails for invalid forceMaxWidth inputs, and drop generated dist changes from the PR so review stays source-focused. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent de26f3d commit 5cb9788

13 files changed

Lines changed: 94 additions & 53 deletions

dist/config.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export interface HudConfig {
3737
showSeparators: boolean;
3838
pathLevels: 1 | 2 | 3;
3939
maxWidth: number | null;
40-
forceMaxWidth: boolean;
4140
elementOrder: HudElement[];
4241
gitStatus: {
4342
enabled: boolean;

dist/config.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/config.js

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/config.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/render/index.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/render/index.js

Lines changed: 16 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/render/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/render/lines/label-align.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { MessageKey } from "../../i18n/types.js";
33
/**
44
* Compute the visual width of a plain-text string (no ANSI).
55
* CJK ideographs count as 2 cells; ASCII characters count as 1.
6+
* In CJK locales, East Asian Ambiguous-width chars also count as 2.
67
*/
78
declare function plainTextWidth(str: string): number;
89
/** Compute the max visual width across the three progress-bar labels. */

dist/render/lines/label-align.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/render/lines/label-align.js

Lines changed: 5 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)