fix: improve file path display and TodoWrite executing state handling

This commit is contained in:
Mohamed Boudra
2026-02-03 09:48:23 +07:00
parent 2623328872
commit 1ea071adb6
3 changed files with 65 additions and 2 deletions
+14 -2
View File
@@ -359,8 +359,13 @@ const DiffFileSection = memo(function DiffFileSection({
color={theme.colors.foregroundMuted}
/>
</View>
<Text style={styles.filePath} numberOfLines={1} ellipsizeMode="middle">
{file.path}
<Text style={styles.filePath} numberOfLines={1} ellipsizeMode="head">
<Text style={styles.fileName}>{file.path.split("/").pop()}</Text>
<Text style={styles.fileDir}>
{file.path.includes("/")
? ` ${file.path.slice(0, file.path.lastIndexOf("/"))}`
: ""}
</Text>
</Text>
{file.isNew && (
<View style={styles.newBadge}>
@@ -1381,6 +1386,13 @@ const styles = StyleSheet.create((theme) => ({
color: theme.colors.foreground,
flex: 1,
},
fileName: {
fontWeight: theme.fontWeight.semibold,
},
fileDir: {
color: theme.colors.foregroundMuted,
fontWeight: theme.fontWeight.normal,
},
newBadge: {
backgroundColor: "rgba(46, 160, 67, 0.2)",
paddingHorizontal: theme.spacing[2],