add line wrap formatting to ErrorDetail

This commit is contained in:
Keith J. Grant 2022-03-14 09:29:02 -07:00
parent eb52095670
commit 7114b9fa11

View File

@ -1,3 +1,4 @@
import 'styled-components/macro';
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
@ -68,7 +69,11 @@ function ErrorDetail({ error }) {
);
};
const renderStack = () => <CardBody>{error.stack}</CardBody>;
const renderStack = () => (
<CardBody css="white-space: pre; font-family: var(--pf-global--FontFamily--monospace)">
{error.stack}
</CardBody>
);
return (
<Expandable