File tree Expand file tree Collapse file tree 4 files changed +9
-13
lines changed
src/containers/Tenant/Query/QueryResult/components Expand file tree Collapse file tree 4 files changed +9
-13
lines changed Original file line number Diff line number Diff line change 11.ydb-query-result-error {
22 & __message {
3- padding : 15px 10px ;
3+ padding-top : var (--g-spacing-4 );
4+ padding-left : var (--g-spacing-4 );
45 }
56}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import {isQueryCancelledError} from '../../../utils/isQueryCancelledError';
66
77import './QueryResultError.scss' ;
88
9- const b = cn ( 'ydb-query-result-error ' ) ;
9+ const b = cn ( 'ydb-query-result-error' ) ;
1010
1111export function QueryResultError ( { error} : { error : unknown } ) {
1212 const parsedError = parseQueryError ( error ) ;
@@ -22,7 +22,11 @@ export function QueryResultError({error}: {error: unknown}) {
2222 }
2323
2424 if ( typeof parsedError === 'object' ) {
25- return < ResultIssues data = { parsedError } /> ;
25+ return (
26+ < div className = { b ( 'message' ) } >
27+ < ResultIssues data = { parsedError } />
28+ </ div >
29+ ) ;
2630 }
2731
2832 return < div className = { b ( 'message' ) } > { parsedError } </ div > ;
Original file line number Diff line number Diff line change 2323 width : 100% ;
2424 }
2525
26- & __error-container {
27- padding-top : var (--g-spacing-4 );
28- padding-left : var (--g-spacing-4 );
29- }
30-
3126 & __result {
3227 display : flex ;
3328 overflow : auto ;
Original file line number Diff line number Diff line change @@ -66,11 +66,7 @@ export function ResultSetsViewer(props: ResultSetsViewerProps) {
6666
6767 return (
6868 < div className = { b ( 'result-wrapper' ) } >
69- { props . error ? (
70- < div className = { b ( 'error-container' ) } >
71- < QueryResultError error = { error } /> { ' ' }
72- </ div >
73- ) : null }
69+ { props . error ? < QueryResultError error = { error } /> : null }
7470 { renderTabs ( ) }
7571 { currentResult ? (
7672 < div className = { b ( 'result' ) } >
You can’t perform that action at this time.
0 commit comments