@@ -6,9 +6,10 @@ import { Table, ColumnDefinition } from 'uiSrc/components/base/layout/table'
6
6
7
7
import { RiIcon } from 'uiSrc/components/base/icons/RiIcon'
8
8
import { ColorText , Text } from '../../../../../components/base/text'
9
- import { LoadingContent } from '../../../../../components/base/layout'
9
+ import { LoadingContent , Spacer } from '../../../../../components/base/layout'
10
10
import GroupBadge from '../GroupBadge'
11
11
import { InfoAttributesBoolean } from '../../constants'
12
+ import { FlexGroup } from 'uiSrc/components/base/layout/flex'
12
13
13
14
export interface Props {
14
15
query : string
@@ -68,7 +69,7 @@ const TableInfoResult = React.memo((props: Props) => {
68
69
< div >
69
70
{ result ? (
70
71
< >
71
- < Text className = "row" size = "s" color = "subdued" >
72
+ < Text className = "row" size = "s" >
72
73
Indexing
73
74
< GroupBadge
74
75
type = { result ?. index_definition ?. key_type ?. toLowerCase ( ) }
@@ -79,7 +80,7 @@ const TableInfoResult = React.memo((props: Props) => {
79
80
?. map ( ( prefix : any ) => `"${ prefix } "` )
80
81
. join ( ',' ) }
81
82
</ Text >
82
- < Text className = "row" size = "s" color = "subdued" >
83
+ < Text className = "row" size = "s" >
83
84
Options:{ ' ' }
84
85
{ result ?. index_options ?. length ? (
85
86
< ColorText style = { { color : 'var(--euiColorFullShade)' } } >
@@ -98,7 +99,7 @@ const TableInfoResult = React.memo((props: Props) => {
98
99
const Footer = ( ) => (
99
100
< div >
100
101
{ result ? (
101
- < Text className = "row" size = "s" color = "subdued" >
102
+ < Text className = "row" size = "s" >
102
103
{ `Number of docs: ${ result ?. num_docs || '0' } (max ${ result ?. max_doc_id || '0' } ) | ` }
103
104
{ `Number of records: ${ result ?. num_records || '0' } | ` }
104
105
{ `Number of terms: ${ result ?. num_terms || '0' } ` }
@@ -116,11 +117,16 @@ const TableInfoResult = React.memo((props: Props) => {
116
117
return (
117
118
< div className = "container" >
118
119
{ isDataArr && (
119
- < div className = "content" data-testid = { `query-table-result-${ query } ` } >
120
+ < FlexGroup
121
+ direction = "column"
122
+ gap = "m"
123
+ className = "content"
124
+ data-testid = { `query-table-result-${ query } ` }
125
+ >
120
126
{ Header ( ) }
121
127
< Table columns = { columns } data = { items ?? [ ] } />
122
128
{ Footer ( ) }
123
- </ div >
129
+ </ FlexGroup >
124
130
) }
125
131
{ isDataEl && < div className = { cx ( 'resultEl' ) } > { result } </ div > }
126
132
{ ! isDataArr && ! isDataEl && (
0 commit comments