Skip to content

Commit

Permalink
fix: long errors overflowing
Browse files Browse the repository at this point in the history
  • Loading branch information
louisjoecodes authored and benfdking committed May 7, 2024
1 parent 2e03ac0 commit 6c4d0f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions js/packages/quary-extension-ui/src/components/Warning.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,14 @@ export const Main: Story = {
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid pariatur, ipsum similique veniam quo totam eius aperiam dolorum.',
},
}

export const LongError: Story = {
args: {
title: 'Attention needed',
children:
`Error reading .schema file: Failed to await js function: JsValue(EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, open '/Users/louisjordan/Desktop/analysis/quary_jaffle_shop/models/staging/schema.yaml'
EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, open '/Users/louisjordan/Desktop/analysis/quary_jaffle_shop/models/staging/schema.yaml'
at Function.e (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:149:6084)
at Object.readFile (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:149:4463))`,
},
}
2 changes: 1 addition & 1 deletion js/packages/quary-extension-ui/src/components/Warning.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const Warning: React.FC<React.PropsWithChildren<Props>> = ({
children,
title,
}) => (
<div className="bg-vscode-inputValidation-warningBackground rounded-md p-4">
<div className="bg-vscode-inputValidation-warningBackground rounded-md p-4 overflow-auto">
<div className="flex">
<div className="flex-shrink-0">
<ExclamationTriangleIcon
Expand Down

0 comments on commit 6c4d0f8

Please sign in to comment.