File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
packages/browser-repl/src/components Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ const shellOutputLine = css({
1919} ) ;
2020
2121const shellOutputLineError = css ( {
22- backgroundColor : palette . red . light2 ,
23- color : palette . red . dark3 ,
22+ backgroundColor : 'inherit' ,
23+ color : palette . red . light1 ,
2424} ) ;
2525
2626const shellOutputLineIcon = css ( {
Original file line number Diff line number Diff line change 11import React , { Component } from 'react' ;
22import PropTypes from 'prop-types' ;
33import { isShouldReportAsBugError } from '@mongosh/errors' ;
4+ import { css , cx , palette } from '@mongodb-js/compass-components' ;
45
56import { SimpleTypeOutput } from './simple-type-output' ;
67import { Expandable } from '../utils/expandable' ;
@@ -10,6 +11,14 @@ interface ErrorOutputProps {
1011 value : any ;
1112}
1213
14+ const errInfo = css ( {
15+ pre : {
16+ borderLeft : '3px solid' ,
17+ paddingLeft : '0px' ,
18+ borderColor : palette . red . light2 ,
19+ } ,
20+ } ) ;
21+
1322export class ErrorOutput extends Component < ErrorOutputProps > {
1423 static propTypes = {
1524 value : PropTypes . any ,
@@ -87,7 +96,7 @@ export class ErrorOutput extends Component<ErrorOutputProps> {
8796 return (
8897 < div >
8998 { this . renderCollapsed ( toggle ) }
90- < div >
99+ < div className = { cx ( errInfo ) } >
91100 { this . formatErrorBugReportInfo ( ) }
92101 { this . formatErrorInfo ( ) }
93102 { this . formatErrorResult ( ) }
You can’t perform that action at this time.
0 commit comments