File tree Expand file tree Collapse file tree 2 files changed +19
-14
lines changed
redisinsight/ui/src/pages/vector-search/components/commands-view/CommandsView Expand file tree Collapse file tree 2 files changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const StyledWrapper = styled.div`
11
11
border: 1px solid ${ ( { theme } ) => theme . semantic . color . border . neutral500 } ;
12
12
border-radius: var(--border-radius-medium);
13
13
// HACK: to fix rectangle like view in rounded borders wrapper
14
- padding-bottom: ${ ( { theme } ) => theme . core . space . space025 } ;
14
+ padding-bottom: ${ ( { theme } ) => theme . core . space . space050 } ;
15
15
16
16
display: flex;
17
17
flex-direction: column;
@@ -24,13 +24,17 @@ export const StyledContainer = styled.div`
24
24
width: 100%;
25
25
overflow: auto;
26
26
color: ${ ( { theme } ) => theme . color . gray700 } ;
27
+ // @include eui.scrollBar;
27
28
`
28
29
29
- // .container {
30
- // @include eui.scrollBar;
31
- // color: var(--euiTextSubduedColor) !important;
30
+ export const StyledHeader = styled . div `
31
+ height: 42px;
32
+ display: flex;
33
+ align-items: center;
34
+ justify-content: flex-end;
35
+ padding: 0 ${ ( { theme } ) => theme . core . space . space150 } ;
32
36
33
- // flex: 1 ;
34
- // width: 100%;
35
- // overflow: auto ;
36
- // }
37
+ flex-shrink: 0 ;
38
+ border-bottom: 1px solid
39
+ ${ ( { theme } ) => theme . semantic . color . border . neutral500 } ;
40
+ `
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
- import cx from 'classnames'
3
2
import { useParams } from 'react-router-dom'
4
3
5
4
import { CodeButtonParams } from 'uiSrc/constants'
@@ -15,8 +14,11 @@ import { ProgressBarLoader } from 'uiSrc/components/base/display'
15
14
import { collectTelemetryQueryReRun } from 'uiSrc/pages/vector-search/telemetry'
16
15
import QueryCard from '../../QueryCard'
17
16
18
- import styles from './styles.module.scss'
19
- import { StyledContainer , StyledWrapper } from './CommandsView.styles'
17
+ import {
18
+ StyledContainer ,
19
+ StyledHeader ,
20
+ StyledWrapper ,
21
+ } from './CommandsView.styles'
20
22
21
23
export interface Props {
22
24
isResultsLoaded : boolean
@@ -86,18 +88,17 @@ const CommandsView = (props: Props) => {
86
88
< ProgressBarLoader color = "primary" data-testid = "progress-wb-history" />
87
89
) }
88
90
{ ! ! items ?. length && (
89
- < div className = { styles . header } >
91
+ < StyledHeader >
90
92
< EmptyButton
91
93
size = "small"
92
94
icon = { DeleteIcon }
93
- className = { styles . clearAllBtn }
94
95
onClick = { ( ) => onAllQueriesDelete ?.( ) }
95
96
disabled = { clearing || processing }
96
97
data-testid = "clear-history-btn"
97
98
>
98
99
Clear Results
99
100
</ EmptyButton >
100
- </ div >
101
+ </ StyledHeader >
101
102
) }
102
103
< StyledContainer >
103
104
< div ref = { scrollDivRef } />
You can’t perform that action at this time.
0 commit comments