diff --git a/scm-ui/ui-components/src/repos/diff/DiffFileTree.tsx b/scm-ui/ui-components/src/repos/diff/DiffFileTree.tsx index 99b1538c43..3d71ba683c 100644 --- a/scm-ui/ui-components/src/repos/diff/DiffFileTree.tsx +++ b/scm-ui/ui-components/src/repos/diff/DiffFileTree.tsx @@ -28,7 +28,13 @@ const StackedSpan = styled.span` font-size: 0.5em; `; -const StyledIcon = styled(Icon)` +const StyledIcon = styled(Icon)<{ isSmaller?: boolean }>` + ${({ isSmaller }) => + isSmaller && + ` + font-size: 0.5em; + margin-top: 0.05rem; + `} min-width: 1.5rem; `; @@ -147,6 +153,7 @@ const TreeFile: FC = ({ changeType, path, parentPath, currentFile, se = ({ changeType, path, parentPath, currentFile, se