Skip to content

Commit abf3bf2

Browse files
authored
fix(ui): update visuals of the commands helper filter in the cli panel (#5019)
1 parent b8af727 commit abf3bf2

File tree

2 files changed

+4
-44
lines changed

2 files changed

+4
-44
lines changed

redisinsight/ui/src/components/command-helper/components/command-helper-search/CHSearchFilter/CHSearchFilter.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { GROUP_TYPES_DISPLAY } from 'uiSrc/constants'
66
import { appRedisCommandsSelector } from 'uiSrc/slices/app/redis-commands'
77
import { cliSettingsSelector } from 'uiSrc/slices/cli/cli-settings'
88
import { Text } from 'uiSrc/components/base/text'
9-
9+
import { Row } from 'uiSrc/components/base/layout/flex'
1010
import { RiSelect } from 'uiSrc/components/base/forms/select/RiSelect'
1111
import { RiIcon } from 'uiSrc/components/base/icons/RiIcon'
1212
import styles from './styles.module.scss'
@@ -79,13 +79,13 @@ const CHSearchFilter = ({ submitFilter, isLoading }: Props) => {
7979
options={options}
8080
allowReset
8181
placeholder={
82-
<div role="presentation">
82+
<Row role="presentation">
8383
<RiIcon
8484
type="FilterIcon"
8585
data-testid="filter-option--group-type-default"
8686
className={styles.controlsIcon}
8787
/>
88-
</div>
88+
</Row>
8989
}
9090
value={typeSelected}
9191
data-testid="select-filter-group-type"

redisinsight/ui/src/components/command-helper/components/command-helper-search/CHSearchFilter/styles.module.scss

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,5 @@
11
.container {
22
height: 36px;
3-
width: 180px;
4-
5-
:global {
6-
.euiFormControlLayout {
7-
.euiSuperSelectControl {
8-
height: 36px !important;
9-
padding: 0 8px !important;
10-
background-color: var(--euiColorLightShade) !important;
11-
border-color: var(--euiColorLightShade) !important;
12-
box-shadow: none !important;
13-
14-
.euiHealth {
15-
margin-top: 10px;
16-
margin-left: -5px;
17-
}
18-
19-
&.euiSuperSelect--isOpen__button {
20-
background-color: var(--euiColorLightShade) !important;
21-
}
22-
&:focus {
23-
background-color: var(--euiColorLightShade) !important;
24-
}
25-
}
26-
}
27-
28-
.euiPopover:not(.euiSuperSelect) {
29-
position: absolute;
30-
z-index: 10;
31-
top: 7px;
32-
right: 88px;
33-
34-
svg {
35-
width: 24px !important;
36-
height: 24px !important;
37-
}
38-
}
39-
.euiFormControlLayoutIcons {
40-
right: 80px;
41-
}
42-
}
433
}
444

455
.filterKeyType {
@@ -49,9 +9,9 @@
499

5010
.controlsIcon {
5111
cursor: pointer;
52-
margin-left: 3px;
5312
height: 20px !important;
5413
width: 20px !important;
14+
5515
&:global(svg) {
5616
color: var(--inputTextColor) !important;
5717
}

0 commit comments

Comments
 (0)