File tree Expand file tree Collapse file tree 6 files changed +10
-78
lines changed Expand file tree Collapse file tree 6 files changed +10
-78
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -112,8 +112,7 @@ import RedisTimeSeriesDark from 'uiSrc/assets/img/modules/RedisTimeSeriesDark.sv
112
112
import RedisTimeSeriesLight from 'uiSrc/assets/img/modules/RedisTimeSeriesLight.svg?react'
113
113
import UnknownDark from 'uiSrc/assets/img/modules/UnknownDark.svg?react'
114
114
import UnknownLight from 'uiSrc/assets/img/modules/UnknownLight.svg?react'
115
- import FormattersLight from 'uiSrc/assets/img/icons/formatter_light.svg?react'
116
- import FormattersDark from 'uiSrc/assets/img/icons/formatter_dark.svg?react'
115
+ import FormatterSvg from 'uiSrc/assets/img/icons/formatter.svg?react'
117
116
118
117
// Import options icons
119
118
import ActiveActiveDark from 'uiSrc/assets/img/options/Active-ActiveDark.svg?react'
@@ -257,8 +256,7 @@ export const OutputDarkIcon = createIconComponent(OutputDarkSvg)
257
256
export const OutputIconIcon = createIconComponent ( OutputIconBaseSvg )
258
257
259
258
// Modules icons
260
- export const FormattersLightIcon = createIconComponent ( FormattersLight )
261
- export const FormattersDarkIcon = createIconComponent ( FormattersDark )
259
+ export const FormatterIcon = createIconComponent ( FormatterSvg )
262
260
export const RedisAIDarkIcon = createIconComponent ( RedisAIDark )
263
261
export const RedisAILightIcon = createIconComponent ( RedisAILight )
264
262
export const RedisBloomDarkIcon = createIconComponent ( RedisBloomDark )
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ type KeyDetailsSelectProps = ComponentProps<typeof RiSelect> & {
11
11
const KeyDetailsSelect = styled ( RiSelect ) < KeyDetailsSelectProps > `
12
12
border: none !important;
13
13
background-color: inherit !important;
14
- color: var(--iconsDefaultColor) !important;
15
- max-width: ${ ( { $fullWidth } ) => ( $fullWidth ? '100%' : '92px' ) } ;
14
+ max-width: 100%;
16
15
padding-right: 18px;
17
16
padding-left: 0;
18
17
height: 28px;
@@ -41,8 +40,8 @@ const ControlsIcon = styled(RiIcon)`
41
40
position: relative;
42
41
margin-left: 3px;
43
42
margin-top: 2px;
44
- width: 20px !important;
45
- height: 20px !important;
43
+ width: 17px !important;
44
+ height: 17px !important;
46
45
47
46
:global(.insightsOpen) {
48
47
@media only screen and (max-width: 1440px) {
@@ -56,11 +55,11 @@ const Container = styled.div<{
56
55
className ?: string
57
56
children : React . ReactNode
58
57
} > `
59
- margin-right: 12px;
58
+ display: flex;
59
+ align-items: center;
60
60
height: 30px;
61
61
border-radius: 4px;
62
62
transition: transform 0.3s ease;
63
- width: 92px;
64
63
overflow: hidden;
65
64
66
65
&:hover {
@@ -76,15 +75,6 @@ const Container = styled.div<{
76
75
height: 100%;
77
76
}
78
77
79
- .selectWrapper {
80
- width: 142px;
81
- position: absolute;
82
-
83
- [class*='TriggerContainer'] {
84
- width: 92px;
85
- }
86
- }
87
-
88
78
&:not(.fullWidth) {
89
79
width: 56px;
90
80
Original file line number Diff line number Diff line change 7
7
KeyValueFormat ,
8
8
MIDDLE_SCREEN_RESOLUTION ,
9
9
TEXT_DISABLED_STRING_FORMATTING ,
10
- Theme ,
11
10
} from 'uiSrc/constants'
12
- import { ThemeContext } from 'uiSrc/contexts/themeContext'
13
11
import {
14
12
keysSelector ,
15
13
selectedKeyDataSelector ,
@@ -40,7 +38,6 @@ const KeyDetailsHeaderFormatter = (props: Props) => {
40
38
const { width } = props
41
39
42
40
const { instanceId = '' } = useParams < { instanceId : string } > ( )
43
- const { theme } = useContext ( ThemeContext )
44
41
const { viewType } = useSelector ( keysSelector )
45
42
const { viewFormat } = useSelector ( selectedKeySelector )
46
43
const { type : keyType , length } = useSelector ( selectedKeyDataSelector ) ?? { }
@@ -78,11 +75,7 @@ const KeyDetailsHeaderFormatter = (props: Props) => {
78
75
< OptionText > { text } </ OptionText >
79
76
) : (
80
77
< ControlsIcon
81
- type = {
82
- theme === Theme . Dark
83
- ? 'FormattersDarkIcon'
84
- : 'FormattersLightIcon'
85
- }
78
+ type = "FormatterIcon"
86
79
data-testid = { `key-value-formatter-option-selected-${ value } ` }
87
80
/>
88
81
) }
Original file line number Diff line number Diff line change 1
1
.container {
2
- margin-right : 12px ;
3
- height : 30px ;
4
2
border-radius : 4px ;
5
3
transition : transform 0.3s ease ;
6
- width : 92px ;
7
4
overflow : hidden ;
8
5
9
6
& :hover {
14
11
transform : translateY (1px );
15
12
}
16
13
17
- :global (.euiFormControlLayout ) {
18
- height : 100% ;
19
- }
20
-
21
- .selectWrapper {
22
- width : 142px ;
23
- position : absolute ;
24
-
25
- :global (.euiFormControlLayout__childrenWrapper ) {
26
- width : 92px ;
27
- }
28
- }
29
-
30
14
& :not (.fullWidth ) {
31
15
width : 46px ;
32
-
33
- :global (.euiFormControlLayout__childrenWrapper ) {
34
- width : 46px ;
35
- }
36
16
}
37
17
38
18
.optionText {
47
27
}
48
28
}
49
29
50
- .changeView :global(.euiSuperSelectControl ) {
51
- border : none !important ;
52
- background-color : inherit !important ;
53
- color : var (--iconsDefaultColor ) !important ;
54
- min-width : 46px ;
55
- padding-right : 18px ;
56
- padding-left : 0 ;
57
- height : 28px ;
58
-
59
- & ~ div {
60
- right : 7px ;
61
- top : 4px ;
62
- svg {
63
- width : 10px !important ;
64
- height : 10px !important ;
65
- }
66
- }
67
- }
68
-
69
30
.formatType {
70
31
margin-top : 3px ;
71
32
margin-bottom : 3px ;
72
33
padding : 6px !important ;
73
34
min-height : 36px !important ;
74
-
75
- :global (.euiContextMenu__icon ) {
76
- height : 14px ;
77
- width : 14px ;
78
- margin-right : 6px ;
79
- }
80
35
}
81
36
82
37
.optionText {
You can’t perform that action at this time.
0 commit comments