diff options
author | Eric Bailey <git@esb.lol> | 2025-09-05 10:25:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-05 10:25:42 -0500 |
commit | 0f089060d2596bf75f141d1d574f14952bca1066 (patch) | |
tree | 3a5c58ca581edb8ca730fa9a2acbd7160449b2a4 /src/screens | |
parent | 01ba0d0ed61083a6d38f76733f57736c51659338 (diff) | |
download | voidsky-0f089060d2596bf75f141d1d574f14952bca1066.tar.zst |
Make logs more clear (#8991)
Diffstat (limited to 'src/screens')
-rw-r--r-- | src/screens/Log.tsx | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/screens/Log.tsx b/src/screens/Log.tsx index 2dd7fe84c..aa31e2cea 100644 --- a/src/screens/Log.tsx +++ b/src/screens/Log.tsx @@ -87,7 +87,21 @@ export function LogScreen({}: NativeStackScreenProps< ) : ( <CircleInfoIcon size="sm" /> )} - <Text style={[a.flex_1]}>{String(entry.message)}</Text> + <View + style={[ + a.flex_1, + a.flex_row, + a.justify_start, + a.align_center, + a.gap_sm, + ]}> + {entry.context && ( + <Text style={[t.atoms.text_contrast_medium]}> + ({String(entry.context)}) + </Text> + )} + <Text>{String(entry.message)}</Text> + </View> {entry.metadata && Object.keys(entry.metadata).length > 0 && (expanded.includes(entry.id) ? ( @@ -115,7 +129,9 @@ export function LogScreen({}: NativeStackScreenProps< t.atoms.border_contrast_low, ]}> <View style={[a.px_sm, a.py_xs]}> - <Text>{JSON.stringify(entry.metadata, null, 2)}</Text> + <Text style={[a.leading_snug, {fontFamily: 'monospace'}]}> + {JSON.stringify(entry.metadata, null, 2)} + </Text> </View> </View> )} |