diff --git a/src/tui.ts b/src/tui.ts index 4f17eeb..66f3c96 100644 --- a/src/tui.ts +++ b/src/tui.ts @@ -855,7 +855,7 @@ export class TuiEngine { let spacesCount = cols - leftLen - rightLen; if (spacesCount < 1) spacesCount = 1; - console.log(leftHeader + ' '.repeat(spacesCount) + rightHeader); + console.log(leftHeader + ' '.repeat(spacesCount - 1) + rightHeader); console.log(chalk.bold.hex('#4A90E2')('┌' + '─'.repeat(cols - 2) + '┐')); // Column widths @@ -884,8 +884,8 @@ export class TuiEngine { ); console.log(chalk.bold.hex('#4A90E2')('├' + '─'.repeat(cols - 2) + '┤')); - // Table Content Height available (rows - 9 ensures total printed lines is rows - 1, preventing terminal scrolling) - const tableHeight = rows - 9; + // Table Content Height available (rows - 10 ensures total printed lines is rows - 2, preventing terminal scrolling) + const tableHeight = rows - 10; if (this.state.issues.length === 0) { const msg = this.state.loading ? 'Fetching issues from server...' : (this.state.error ? `Error: ${this.state.error}` : 'No issues found.');