Only show bg on expanded file headers in git diff panel
This commit is contained in:
@@ -207,6 +207,7 @@ const DiffFileHeader = memo(function DiffFileHeader({
|
|||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
styles.fileSectionHeaderContainer,
|
styles.fileSectionHeaderContainer,
|
||||||
|
isExpanded && styles.fileSectionHeaderExpanded,
|
||||||
]}
|
]}
|
||||||
onLayout={(event) => {
|
onLayout={(event) => {
|
||||||
layoutYRef.current = event.nativeEvent.layout.y;
|
layoutYRef.current = event.nativeEvent.layout.y;
|
||||||
@@ -1192,6 +1193,9 @@ const styles = StyleSheet.create((theme) => ({
|
|||||||
fileSectionHeaderContainer: {
|
fileSectionHeaderContainer: {
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
},
|
},
|
||||||
|
fileSectionHeaderExpanded: {
|
||||||
|
backgroundColor: theme.colors.surface1,
|
||||||
|
},
|
||||||
fileSectionBodyContainer: {
|
fileSectionBodyContainer: {
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
backgroundColor: theme.colors.surface2,
|
backgroundColor: theme.colors.surface2,
|
||||||
|
|||||||
Reference in New Issue
Block a user