Fix git diff header truncation
This commit is contained in:
@@ -584,7 +584,9 @@ const DiffFileHeader = memo(function DiffFileHeader({
|
|||||||
onPress={toggleExpanded}
|
onPress={toggleExpanded}
|
||||||
>
|
>
|
||||||
<View style={styles.fileHeaderLeft}>
|
<View style={styles.fileHeaderLeft}>
|
||||||
<Text style={styles.fileName}>{file.path.split("/").pop()}</Text>
|
<Text style={styles.fileName} numberOfLines={1}>
|
||||||
|
{file.path.split("/").pop()}
|
||||||
|
</Text>
|
||||||
<Text style={styles.fileDir} numberOfLines={1}>
|
<Text style={styles.fileDir} numberOfLines={1}>
|
||||||
{file.path.includes("/") ? ` ${file.path.slice(0, file.path.lastIndexOf("/"))}` : ""}
|
{file.path.includes("/") ? ` ${file.path.slice(0, file.path.lastIndexOf("/"))}` : ""}
|
||||||
</Text>
|
</Text>
|
||||||
@@ -2504,11 +2506,11 @@ const styles = StyleSheet.create((theme) => ({
|
|||||||
fileHeader: {
|
fileHeader: {
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
justifyContent: "space-between",
|
|
||||||
paddingLeft: theme.spacing[3],
|
paddingLeft: theme.spacing[3],
|
||||||
paddingRight: theme.spacing[2],
|
paddingRight: theme.spacing[2],
|
||||||
paddingVertical: theme.spacing[2],
|
paddingVertical: theme.spacing[2],
|
||||||
gap: theme.spacing[1],
|
gap: theme.spacing[1],
|
||||||
|
minWidth: 0,
|
||||||
zIndex: 2,
|
zIndex: 2,
|
||||||
elevation: 2,
|
elevation: 2,
|
||||||
},
|
},
|
||||||
@@ -2532,13 +2534,15 @@ const styles = StyleSheet.create((theme) => ({
|
|||||||
fontSize: theme.fontSize.sm,
|
fontSize: theme.fontSize.sm,
|
||||||
fontWeight: theme.fontWeight.normal,
|
fontWeight: theme.fontWeight.normal,
|
||||||
color: theme.colors.foreground,
|
color: theme.colors.foreground,
|
||||||
flexShrink: 0,
|
flexShrink: 1,
|
||||||
|
minWidth: 0,
|
||||||
},
|
},
|
||||||
fileDir: {
|
fileDir: {
|
||||||
fontSize: theme.fontSize.sm,
|
fontSize: theme.fontSize.sm,
|
||||||
fontWeight: theme.fontWeight.normal,
|
fontWeight: theme.fontWeight.normal,
|
||||||
color: theme.colors.foregroundMuted,
|
color: theme.colors.foregroundMuted,
|
||||||
flex: 1,
|
flex: 1,
|
||||||
|
minWidth: 0,
|
||||||
},
|
},
|
||||||
newBadge: {
|
newBadge: {
|
||||||
backgroundColor: "rgba(46, 160, 67, 0.2)",
|
backgroundColor: "rgba(46, 160, 67, 0.2)",
|
||||||
|
|||||||
Reference in New Issue
Block a user