| | @@ -3,6 +3,7 @@ |
| 3 | 3 | /* @jsxFrag Fragment */ |
| 4 | 4 | import type { RenderElement } from 'claude-code' |
| 5 | 5 | |
| 6 | +import Limits from '../limits' |
| 6 | 7 | import Names from '../names' |
| 7 | 8 | import PaneState from '../pane-state' |
| 8 | 9 | import { currentPane } from './current-pane' |
| | @@ -15,7 +16,9 @@ |
| 15 | 16 | * the picked turn's edits while that turn still exists (a rewind drops it). |
| 16 | 17 | * |
| 17 | 18 | * Seated inline (no room beside the transcript), only the built-in's line |
| 18 | | - * asking for a wider terminal, as the built-in shows no panel there. |
| 19 | + * asking for a wider terminal, as the built-in shows no panel there. Docked, |
| 20 | + * the body keeps the built-in's blank row above the header and blank last |
| 21 | + * column, so its rows sit and wrap where the built-in's do. |
| 19 | 22 | * |
| 20 | 23 | * @param kit the elements, the handlers, the width |
| 21 | 24 | * @param model the pane's state |
| | @@ -35,5 +38,13 @@ |
| 35 | 38 | return <Box>{Sections.dimNote(kit, Names.RESIZE_TERMINAL_TEXT)}</Box> |
| 36 | 39 | } |
| 37 | 40 | |
| 38 | | - return isCurrent ? currentPane(kit, model) : turnPane(kit, model, turn) |
| 41 | + const right = Limits.PANE_RIGHT_PAD_COLUMNS |
| 42 | + const top = Limits.PANE_TOP_PAD_ROWS |
| 43 | + const inset: Kit = { ...kit, columns: Math.max(1, kit.columns - right) } |
| 44 | + |
| 45 | + return ( |
| 46 | + <Box flexDirection="column" paddingTop={top} paddingRight={right}> |
| 47 | + {isCurrent ? currentPane(inset, model) : turnPane(inset, model, turn)} |
| 48 | + </Box> |
| 49 | + ) |
| 39 | 50 | } |