mirror of
https://github.com/apache/superset.git
synced 2024-09-16 02:29:39 -04:00
fix: Monospacing errors in dashboards & charts (#18796)
* fix: Monospacing errors in dashboards & charts * removed unnecessary styling
This commit is contained in:
parent
0db49b1a7c
commit
4923256b01
@ -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={<MonospaceDiv>{message}</MonospaceDiv>}
|
||||
copyText={message}
|
||||
link={queryResponse ? queryResponse.link : null}
|
||||
source={dashboardId ? 'dashboard' : 'explore'}
|
||||
|
Loading…
Reference in New Issue
Block a user