Update files
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
export function getCodeInsets(theme: any) {
|
export function getCodeInsets(theme: any) {
|
||||||
const paddingX = theme.spacing[3] + theme.spacing[2];
|
const currentHorizontal = theme.spacing[3] + theme.spacing[2];
|
||||||
const paddingY = theme.spacing[1];
|
const padding =
|
||||||
|
typeof theme.spacing?.[4] === "number" ? theme.spacing[4] : currentHorizontal;
|
||||||
const extraRight = theme.spacing[4];
|
const extraRight = theme.spacing[4];
|
||||||
const extraBottom = theme.spacing[3];
|
const extraBottom = theme.spacing[3];
|
||||||
|
|
||||||
return { paddingX, paddingY, extraRight, extraBottom };
|
return { padding, extraRight, extraBottom };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -105,8 +105,8 @@ const styles = StyleSheet.create((theme) => {
|
|||||||
},
|
},
|
||||||
line: {
|
line: {
|
||||||
minWidth: "100%",
|
minWidth: "100%",
|
||||||
paddingHorizontal: insets.paddingX,
|
paddingHorizontal: insets.padding,
|
||||||
paddingVertical: insets.paddingY,
|
paddingVertical: insets.padding,
|
||||||
},
|
},
|
||||||
lineText: {
|
lineText: {
|
||||||
fontFamily: Fonts.mono,
|
fontFamily: Fonts.mono,
|
||||||
|
|||||||
@@ -412,8 +412,8 @@ const styles = StyleSheet.create((theme) => {
|
|||||||
},
|
},
|
||||||
codeLine: {
|
codeLine: {
|
||||||
minWidth: "100%",
|
minWidth: "100%",
|
||||||
paddingHorizontal: insets.paddingX,
|
paddingHorizontal: insets.padding,
|
||||||
paddingVertical: insets.paddingY,
|
paddingVertical: insets.padding,
|
||||||
},
|
},
|
||||||
scrollArea: {
|
scrollArea: {
|
||||||
borderWidth: theme.borderWidth[1],
|
borderWidth: theme.borderWidth[1],
|
||||||
@@ -422,7 +422,7 @@ const styles = StyleSheet.create((theme) => {
|
|||||||
backgroundColor: theme.colors.surface2,
|
backgroundColor: theme.colors.surface2,
|
||||||
},
|
},
|
||||||
scrollContent: {
|
scrollContent: {
|
||||||
padding: theme.spacing[2],
|
padding: insets.padding,
|
||||||
},
|
},
|
||||||
scrollText: {
|
scrollText: {
|
||||||
fontFamily: Fonts.mono,
|
fontFamily: Fonts.mono,
|
||||||
@@ -440,7 +440,7 @@ const styles = StyleSheet.create((theme) => {
|
|||||||
borderColor: theme.colors.destructive,
|
borderColor: theme.colors.destructive,
|
||||||
},
|
},
|
||||||
jsonContent: {
|
jsonContent: {
|
||||||
padding: theme.spacing[2],
|
padding: insets.padding,
|
||||||
},
|
},
|
||||||
errorText: {
|
errorText: {
|
||||||
color: theme.colors.destructive,
|
color: theme.colors.destructive,
|
||||||
|
|||||||
Reference in New Issue
Block a user