@devries-cameron20 / t3code-1 / commits / e3a2dfb9d0
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Fix diff panel padding and top spacing for virtualized files

- Use horizontal and bottom padding on the diff render surface - Add top margin to the first diff file for consistent spacing

Julius Marminge committed Mar 1, 2026 at 10:30 UTC e3a2dfb9d0ca049890c10a9f27124be2eb1a5985
1 file changed +2 -2
apps/web/src/components/DiffPanel.tsx
+2 -2
@@ -547,7 +547,7 @@ export default function DiffPanel({ mode = "inline" }: DiffPanelProps) {
547 </div>
548 ) : renderablePatch.kind === "files" ? (
549 <Virtualizer
550 - className="diff-render-surface h-full min-h-0 overflow-auto p-2 "
550 + className="diff-render-surface h-full min-h-0 overflow-auto px-2 pb-2"
551 config={{
552 overscrollSize: 600,
553 intersectionObserverMargin: 1200,
@@ -561,7 +561,7 @@ export default function DiffPanel({ mode = "inline" }: DiffPanelProps) {
561 <div
562 key={themedFileKey}
563 data-diff-file-path={filePath}
564 - className="diff-render-file mb-2 rounded-md last:mb-0"
564 + className="diff-render-file mb-2 rounded-md first:mt-2 last:mb-0"
565 onClickCapture={(event) => {
566 const nativeEvent = event.nativeEvent as MouseEvent;
567 const composedPath = nativeEvent.composedPath?.() ?? [];