mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
add line wrap formatting to ErrorDetail
This commit is contained in:
parent
eb52095670
commit
7114b9fa11
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user