fix: add file path titles to diff headers

This commit is contained in:
Myriad-Dreamin
2026-05-17 12:35:59 +08:00
parent ec646db844
commit 147d459775
+2
View File
@@ -867,10 +867,12 @@ const DiffFileHeader = memo(function DiffFileHeader({
() => [styles.fileSectionHeaderContainer, isExpanded && styles.fileSectionHeaderExpanded],
[isExpanded],
);
const fileHeaderTitleProps = isWeb ? { title: file.path } : {};
return (
<View style={containerStyle} onLayout={handleLayout} testID={testID}>
<Pressable
{...fileHeaderTitleProps}
testID={testID ? `${testID}-toggle` : undefined}
style={fileHeaderPressableStyle}
// Android: prevent parent pan/scroll gestures from canceling the tap release.