Only show bg on expanded file headers in git diff panel

This commit is contained in:
Mohamed Boudra
2026-03-18 22:07:34 +07:00
parent d15a1451b7
commit 3287f2d00b
@@ -207,6 +207,7 @@ const DiffFileHeader = memo(function DiffFileHeader({
<View
style={[
styles.fileSectionHeaderContainer,
isExpanded && styles.fileSectionHeaderExpanded,
]}
onLayout={(event) => {
layoutYRef.current = event.nativeEvent.layout.y;
@@ -1192,6 +1193,9 @@ const styles = StyleSheet.create((theme) => ({
fileSectionHeaderContainer: {
overflow: "hidden",
},
fileSectionHeaderExpanded: {
backgroundColor: theme.colors.surface1,
},
fileSectionBodyContainer: {
overflow: "hidden",
backgroundColor: theme.colors.surface2,