Skip to content

Commit 83f1a64

Browse files
committed
fix(init): remove centering wrapper to prevent left-side shift
The outer Box with alignItems=center was causing the content to shift horizontally when prompt components mounted/unmounted — Ink recalculated the centering offset as content changed. Remove the wrapper entirely and render the inner box directly, which left-aligns all content flush with the terminal edge.
1 parent 2070265 commit 83f1a64

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

src/lib/init/ui/ink-app.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -219,17 +219,7 @@ export function App({ store }: AppProps): React.ReactNode {
219219
</Box>
220220
);
221221

222-
return (
223-
<Box
224-
alignItems="center"
225-
flexDirection="column"
226-
height={rows}
227-
justifyContent="flex-start"
228-
width={columns}
229-
>
230-
{inner}
231-
</Box>
232-
);
222+
return inner;
233223
}
234224

235225
// ────────────────────────────── Layout helpers ────────────────────────

0 commit comments

Comments
 (0)