diff --git a/superset-frontend/src/chart/Chart.jsx b/superset-frontend/src/chart/Chart.jsx index 6e1003f79a1c..7fb5f47808f7 100644 --- a/superset-frontend/src/chart/Chart.jsx +++ b/superset-frontend/src/chart/Chart.jsx @@ -113,6 +113,14 @@ const RefreshOverlayWrapper = styled.div` justify-content: center; `; +const MonospaceDiv = styled.div` + font-family: ${({ theme }) => theme.typography.families.monospace}; + white-space: pre; + word-break: break-word; + overflow-x: auto; + white-space: pre-wrap; +`; + class Chart extends React.PureComponent { constructor(props) { super(props); @@ -224,7 +232,7 @@ class Chart extends React.PureComponent { key={chartId} chartId={chartId} error={error} - subtitle={message} + subtitle={{message}} copyText={message} link={queryResponse ? queryResponse.link : null} source={dashboardId ? 'dashboard' : 'explore'}