Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling improvements for RunLog #412

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 25 additions & 13 deletions frontend/chains/editor/run_log/ExecutionDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,43 @@ export const ExecutionDetail = ({ execution }) => {
? execution?.outputs
: JSON.stringify(execution?.outputs, null, 4);

const syntaxStyle = {
fontSize: "12px",
maxWidth: "900px",
margniRight: "5px",
};

return (
<Box pl={4} pt={1} height={"100%"}>
<VStack alignItems={"start"} spacing={3}>
<Box>
<Box width={"100%"}>
<Heading size={"sm"} mb={1}>
Input
</Heading>
<Box width={600}>
<SyntaxHighlighter style={syntaxTheme} wrapLines={true}>
{formattedInputs}
</SyntaxHighlighter>
</Box>
<SyntaxHighlighter
customStyle={syntaxStyle}
language="json"
style={syntaxTheme}
wrapLines={true}
>
{formattedInputs}
</SyntaxHighlighter>
</Box>
<Box>
<Box width={"100%"}>
<Heading size={"sm"} mb={1}>
Output
</Heading>
<Box width={600}>
<SyntaxHighlighter style={syntaxTheme} wrapLines={true}>
{formattedOutputs}
</SyntaxHighlighter>
</Box>
<SyntaxHighlighter
customStyle={syntaxStyle}
language="json"
style={syntaxTheme}
wrapLines={true}
>
{formattedOutputs}
</SyntaxHighlighter>
</Box>
{execution?.message && (
<Box width={500}>
<Box width={"100%"}>
<Heading size={"sm"} mb={1}>
Message
</Heading>
Expand Down