Skip to content

Show text wrapping on code blocks #2338

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

Merged
merged 3 commits into from
Aug 4, 2025
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion apps/webapp/app/components/runs/v3/DeploymentError.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type DeploymentErrorProps = {

export function DeploymentError({ errorData }: DeploymentErrorProps) {
return (
<div className="flex flex-col gap-2 rounded-sm border border-rose-500/50 p-3">
<div className="mx-3 mb-3 flex flex-col gap-2 rounded-sm border border-rose-500/50 p-3">
<DeploymentErrorHeader title={errorData.name ?? "Error"} titleClassName="text-rose-500" />
{errorData.message && <Callout variant="error">{errorData.message}</Callout>}
{errorData.stack && (
Expand All @@ -18,6 +18,7 @@ export function DeploymentError({ errorData }: DeploymentErrorProps) {
showLineNumbers={false}
code={errorData.stack}
maxLines={20}
showTextWrapping
/>
)}
{errorData.stderr && (
Expand All @@ -28,6 +29,7 @@ export function DeploymentError({ errorData }: DeploymentErrorProps) {
showLineNumbers={false}
code={errorData.stderr}
maxLines={20}
showTextWrapping
/>
</>
)}
Expand Down
1 change: 1 addition & 0 deletions apps/webapp/app/components/runs/v3/PacketDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export function PacketDisplay({
code={data}
maxLines={20}
showLineNumbers={false}
showTextWrapping
/>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -753,12 +753,12 @@ function RunBody({
</div>
) : tab === "context" ? (
<div className="flex flex-col gap-4 py-3">
<CodeBlock code={run.context} showLineNumbers={false} />
<CodeBlock code={run.context} showLineNumbers={false} showTextWrapping />
</div>
) : tab === "metadata" ? (
<div className="flex flex-col gap-4 py-3">
{run.metadata ? (
<CodeBlock code={run.metadata} showLineNumbers={false} />
<CodeBlock code={run.metadata} showLineNumbers={false} showTextWrapping />
) : (
<Callout to="https://trigger.dev/docs/runs/metadata" variant="docs">
No metadata set for this run. View our metadata documentation to learn more.
Expand Down
Loading