mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
Update files
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
export function getCodeInsets(theme: any) {
|
||||
const currentHorizontal = theme.spacing[3] + theme.spacing[2];
|
||||
const padding =
|
||||
typeof theme.spacing?.[4] === "number" ? theme.spacing[4] : currentHorizontal;
|
||||
typeof theme.spacing?.[3] === "number"
|
||||
? theme.spacing[3]
|
||||
: typeof theme.spacing?.[4] === "number"
|
||||
? theme.spacing[4]
|
||||
: 12;
|
||||
const extraRight = theme.spacing[4];
|
||||
const extraBottom = theme.spacing[3];
|
||||
|
||||
|
||||
@@ -102,11 +102,12 @@ const styles = StyleSheet.create((theme) => {
|
||||
},
|
||||
linesContainer: {
|
||||
alignSelf: "flex-start",
|
||||
padding: insets.padding,
|
||||
},
|
||||
line: {
|
||||
minWidth: "100%",
|
||||
paddingHorizontal: insets.padding,
|
||||
paddingVertical: insets.padding,
|
||||
paddingHorizontal: 0,
|
||||
paddingVertical: theme.spacing[1],
|
||||
},
|
||||
lineText: {
|
||||
fontFamily: Fonts.mono,
|
||||
|
||||
@@ -161,7 +161,7 @@ export function ToolCallDetailsContent({
|
||||
const isFullBleed = display.type === "edit" || display.type === "shell";
|
||||
|
||||
if (display.type === "shell") {
|
||||
const combinedText = `$ ${display.command}${display.output ? `\n${display.output}` : ""}`;
|
||||
const hasOutput = Boolean(display.output);
|
||||
sections.push(
|
||||
<View key="shell" style={styles.section}>
|
||||
<View style={styles.diffContainer}>
|
||||
@@ -178,7 +178,11 @@ export function ToolCallDetailsContent({
|
||||
contentContainerStyle={styles.codeHorizontalContent}
|
||||
>
|
||||
<View style={styles.codeLine}>
|
||||
<Text selectable style={styles.scrollText}>{combinedText}</Text>
|
||||
<Text selectable style={styles.scrollText}>
|
||||
<Text style={styles.shellPrompt}>$ </Text>
|
||||
{display.command}
|
||||
{hasOutput ? `\n\n${display.output}` : ""}
|
||||
</Text>
|
||||
</View>
|
||||
</ScrollView>
|
||||
</ScrollView>
|
||||
@@ -424,16 +428,19 @@ const styles = StyleSheet.create((theme) => {
|
||||
scrollContent: {
|
||||
padding: insets.padding,
|
||||
},
|
||||
scrollText: {
|
||||
fontFamily: Fonts.mono,
|
||||
fontSize: theme.fontSize.xs,
|
||||
color: theme.colors.foreground,
|
||||
lineHeight: 18,
|
||||
},
|
||||
jsonScroll: {
|
||||
borderWidth: theme.borderWidth[1],
|
||||
borderColor: theme.colors.border,
|
||||
borderRadius: theme.borderRadius.base,
|
||||
scrollText: {
|
||||
fontFamily: Fonts.mono,
|
||||
fontSize: theme.fontSize.xs,
|
||||
color: theme.colors.foreground,
|
||||
lineHeight: 18,
|
||||
},
|
||||
shellPrompt: {
|
||||
color: theme.colors.foregroundMuted,
|
||||
},
|
||||
jsonScroll: {
|
||||
borderWidth: theme.borderWidth[1],
|
||||
borderColor: theme.colors.border,
|
||||
borderRadius: theme.borderRadius.base,
|
||||
backgroundColor: theme.colors.surface2,
|
||||
},
|
||||
jsonScrollError: {
|
||||
|
||||
Reference in New Issue
Block a user