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 && ( <>