style(sqllab): wrap text in monospace db-provided error messages (#11354)

This commit is contained in:
Maxime Beauchemin
2020-10-21 17:35:20 -07:00
committed by GitHub
parent f6436b7652
commit 69046f08d4

View File

@@ -57,9 +57,14 @@ interface ResultSetState {
data: Record<string, any>[];
}
// Making text render line breaks/tabs as is as monospace,
// but wrapping text too so text doesn't overflow
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;
`;
export default class ResultSet extends React.PureComponent<