Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/apps/shell/public/page-css.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
import { describe, expect, it } from 'vitest';

const css = readFileSync(join(__dirname, 'page.css'), 'utf8');

describe('shell page.css terminal rendering', () => {
it('does not clip the last terminal row on the alternate screen buffer', () => {
// A clip-path inset on .alt-screen .xterm-screen hides the bottom row of
// TUI apps (e.g. the Claude Code mode/status line). Regression guard for
// the workaround that amputated one full row of content.
const altScreenBlocks = css.match(/\.alt-screen[^{]*\{[^}]*\}/g) ?? [];
for (const block of altScreenBlocks) {
expect(block).not.toMatch(/clip-path/);
}
});
});
5 changes: 0 additions & 5 deletions src/apps/shell/public/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -346,11 +346,6 @@
display: none !important;
}

/* Clip the last row — 17px ≈ 14px font × 1.2 line-height */
.page-shell .alt-screen .xterm-screen {
clip-path: inset(0 0 17px 0);
}

/* ── Browser pane ─────────────────────────────────────────────────── */
.page-shell .browser-nav {
display: flex;
Expand Down
Loading