Update files

This commit is contained in:
Mohamed Boudra
2026-02-04 13:04:45 +07:00
parent 1f895e0e8d
commit b9464e5bd3
3 changed files with 10 additions and 10 deletions

View File

@@ -1,9 +1,9 @@
export function getCodeInsets(theme: any) {
const paddingX = theme.spacing[3] + theme.spacing[2];
const paddingY = theme.spacing[1];
const currentHorizontal = theme.spacing[3] + theme.spacing[2];
const padding =
typeof theme.spacing?.[4] === "number" ? theme.spacing[4] : currentHorizontal;
const extraRight = theme.spacing[4];
const extraBottom = theme.spacing[3];
return { paddingX, paddingY, extraRight, extraBottom };
return { padding, extraRight, extraBottom };
}

View File

@@ -105,8 +105,8 @@ const styles = StyleSheet.create((theme) => {
},
line: {
minWidth: "100%",
paddingHorizontal: insets.paddingX,
paddingVertical: insets.paddingY,
paddingHorizontal: insets.padding,
paddingVertical: insets.padding,
},
lineText: {
fontFamily: Fonts.mono,

View File

@@ -412,8 +412,8 @@ const styles = StyleSheet.create((theme) => {
},
codeLine: {
minWidth: "100%",
paddingHorizontal: insets.paddingX,
paddingVertical: insets.paddingY,
paddingHorizontal: insets.padding,
paddingVertical: insets.padding,
},
scrollArea: {
borderWidth: theme.borderWidth[1],
@@ -422,7 +422,7 @@ const styles = StyleSheet.create((theme) => {
backgroundColor: theme.colors.surface2,
},
scrollContent: {
padding: theme.spacing[2],
padding: insets.padding,
},
scrollText: {
fontFamily: Fonts.mono,
@@ -440,7 +440,7 @@ const styles = StyleSheet.create((theme) => {
borderColor: theme.colors.destructive,
},
jsonContent: {
padding: theme.spacing[2],
padding: insets.padding,
},
errorText: {
color: theme.colors.destructive,