From ca75d4fc7febafc7df8e99b4ecb4e27e958ff8fc Mon Sep 17 00:00:00 2001 From: everpcpc Date: Tue, 24 Feb 2026 09:59:40 +0800 Subject: [PATCH] Set diff context expansion to 20 lines per click --- packages/ui/src/components/panels/diff/PierreDiffViewer.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/ui/src/components/panels/diff/PierreDiffViewer.tsx b/packages/ui/src/components/panels/diff/PierreDiffViewer.tsx index 48cdfb0..23968fd 100644 --- a/packages/ui/src/components/panels/diff/PierreDiffViewer.tsx +++ b/packages/ui/src/components/panels/diff/PierreDiffViewer.tsx @@ -553,6 +553,7 @@ const FileCard = memo(function FileCard({ const base = { diffStyle: 'unified' as const, hunkSeparators: 'line-info' as const, + expansionLineCount: 20, overflow: 'scroll' as const, themeType: themeType as 'light' | 'dark', disableFileHeader: true, @@ -570,6 +571,7 @@ const FileCard = memo(function FileCard({ return { diffStyle: base.diffStyle, hunkSeparators: base.hunkSeparators, + expansionLineCount: base.expansionLineCount, overflow: base.overflow, themeType: base.themeType, disableFileHeader: true,