From c3915981b415e9a3997a3bb14791141c6456a186 Mon Sep 17 00:00:00 2001 From: Ammar Date: Sat, 15 Nov 2025 23:23:55 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20fix:=20hide=20diff=20padding=20w?= =?UTF-8?q?hen=20no=20overflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/shared/DiffRenderer.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/shared/DiffRenderer.tsx b/src/components/shared/DiffRenderer.tsx index 8a97334e7..9a4233b55 100644 --- a/src/components/shared/DiffRenderer.tsx +++ b/src/components/shared/DiffRenderer.tsx @@ -107,13 +107,16 @@ export const DiffContainer: React.FC< }; }, [resolvedMaxHeight, clampContent]); + const showOverflowControls = clampContent && isOverflowing; + return (
- {clampContent && isOverflowing && ( + {showOverflowControls && ( <>