Merge branch 'streamline-file-explorer'

This commit is contained in:
Mohamed Boudra
2026-02-04 10:41:43 +07:00
@@ -597,7 +597,10 @@ function FilePreviewBody({
if (preview.kind === "text") { if (preview.kind === "text") {
if (variant === "sheet") { if (variant === "sheet") {
return ( return (
<BottomSheetScrollView style={styles.previewContent}> <BottomSheetScrollView
style={styles.previewContent}
contentContainerStyle={styles.previewTextContent}
>
<ScrollView horizontal nestedScrollEnabled showsHorizontalScrollIndicator> <ScrollView horizontal nestedScrollEnabled showsHorizontalScrollIndicator>
<Text style={styles.codeText}>{preview.content}</Text> <Text style={styles.codeText}>{preview.content}</Text>
</ScrollView> </ScrollView>
@@ -605,7 +608,10 @@ function FilePreviewBody({
); );
} }
return ( return (
<RNScrollView style={styles.previewContent}> <RNScrollView
style={styles.previewContent}
contentContainerStyle={styles.previewTextContent}
>
<RNScrollView horizontal nestedScrollEnabled showsHorizontalScrollIndicator> <RNScrollView horizontal nestedScrollEnabled showsHorizontalScrollIndicator>
<Text style={styles.codeText}>{preview.content}</Text> <Text style={styles.codeText}>{preview.content}</Text>
</RNScrollView> </RNScrollView>
@@ -929,7 +935,7 @@ const styles = StyleSheet.create((theme) => ({
flexDirection: "row", flexDirection: "row",
alignItems: "center", alignItems: "center",
justifyContent: "space-between", justifyContent: "space-between",
paddingVertical: theme.spacing[2], paddingVertical: theme.spacing[1],
paddingRight: theme.spacing[2], paddingRight: theme.spacing[2],
}, },
entryRowActive: { entryRowActive: {
@@ -1041,6 +1047,9 @@ const styles = StyleSheet.create((theme) => ({
previewContent: { previewContent: {
flex: 1, flex: 1,
}, },
previewTextContent: {
padding: theme.spacing[3],
},
codeText: { codeText: {
color: theme.colors.foreground, color: theme.colors.foreground,
fontFamily: Fonts.mono, fontFamily: Fonts.mono,
@@ -1051,6 +1060,7 @@ const styles = StyleSheet.create((theme) => ({
flex: 1, flex: 1,
alignItems: "center", alignItems: "center",
justifyContent: "center", justifyContent: "center",
padding: theme.spacing[3],
}, },
previewImage: { previewImage: {
width: "100%", width: "100%",