Skip to content

Commit b5f68bb

Browse files
authored
fix(cubejs-playground): error overflow (#6170)
1 parent 30a19b5 commit b5f68bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/cubejs-playground/src/components/Error/FatalError.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export const Code = styled.pre`
1212
font-size: 13px;
1313
white-space: pre-wrap;
1414
margin: 0;
15+
max-width: 100%;
16+
overflow: auto;
1517
`;
1618

1719
type CubeError = Error & {
@@ -27,11 +29,11 @@ type FatalErrorProps = {
2729

2830
export function FatalError({ error, stack }: FatalErrorProps) {
2931
const [visible, setVisible] = useState(false);
30-
32+
3133
const ansiHtmlError = useMemo(() => {
3234
return generateAnsiHTML(error.toString()).replace(/(Error:\s)/g, '');
3335
}, [error])
34-
36+
3537
const errorStack = stack || (typeof error !== 'string' ? error.response?.stack : null);
3638

3739
return (

0 commit comments

Comments
 (0)