From 32ac1a2a32a839b35c50bc77d8f3a13992502a34 Mon Sep 17 00:00:00 2001 From: Callum Alpass Date: Tue, 3 Nov 2026 02:09:44 +1100 Subject: [PATCH] Keep the diff and pull request status lines from shrinking away OpenTUI 0.8 draws nothing for a node Yoga shrinks to zero rows, so a status line above a long scrollbox vanished instead of overlapping its first row. --- src/ui/DiffView.tsx | 8 ++++---- src/ui/PullRequestView.tsx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ui/DiffView.tsx b/src/ui/DiffView.tsx index 5d406f7..499a976 100644 --- a/src/ui/DiffView.tsx +++ b/src/ui/DiffView.tsx @@ -33,10 +33,10 @@ export function DiffView(props: { readonly diff: DiffState; readonly scrollRef: {diff.source ? "[/] file · x whole file / collapse · esc close" : "[/] file · esc close"} - {diff.status === "loading" ? Loading diff… : null} - {diff.status === "error" ? {`Could not load the diff: ${diff.error ?? "unknown error"}`} : null} - {diff.status === "ready" && files.length === 0 ? No changes. : null} - {diff.truncated ? The diff was too large and is cut short. : null} + {diff.status === "loading" ? Loading diff… : null} + {diff.status === "error" ? {`Could not load the diff: ${diff.error ?? "unknown error"}`} : null} + {diff.status === "ready" && files.length === 0 ? No changes. : null} + {diff.truncated ? The diff was too large and is cut short. : null} {files.map((file, index) => ( diff --git a/src/ui/PullRequestView.tsx b/src/ui/PullRequestView.tsx index 674e695..c80e822 100644 --- a/src/ui/PullRequestView.tsx +++ b/src/ui/PullRequestView.tsx @@ -39,8 +39,8 @@ export function PullRequestView(props: { readonly view: PullRequestViewState; re