Skip to content

Commit

Permalink
style(sqllab): wrap text in monospace db-provided error messages (apa…
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Oct 22, 2020
1 parent f6436b7 commit 69046f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions superset-frontend/src/SqlLab/components/ResultSet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<
Expand Down

0 comments on commit 69046f0

Please sign in to comment.