Skip to content

Commit 85cd0da

Browse files
tysoncungclaude
andcommitted
fix(terminal): increase minimum width for numeric columns to prevent truncation
Fixes #700 by increasing the minimum column width for right-aligned numeric columns from 10 to 14 characters in responsive mode. This ensures large token numbers (e.g., 536,073,421) are displayed in full without ellipsis truncation when the table is resized to fit narrow terminals. The fix maintains consistency with the normal mode's generous padding while providing enough space for comma-formatted large numbers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 5b279f3 commit 85cd0da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/terminal/src/table.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export class ResponsiveTable {
191191

192192
// Apply minimum widths based on column type
193193
if (align === 'right') {
194-
adjustedWidth = Math.max(adjustedWidth, 10);
194+
adjustedWidth = Math.max(adjustedWidth, 14); // Increased to accommodate large token numbers (e.g., 536,073,421)
195195
}
196196
else if (index === 0) {
197197
adjustedWidth = Math.max(adjustedWidth, 10);

0 commit comments

Comments
 (0)