File tree Expand file tree Collapse file tree 2 files changed +33
-8
lines changed
redisinsight/ui/src/components/live-time-recommendations/components/recommendation Expand file tree Collapse file tree 2 files changed +33
-8
lines changed Original file line number Diff line number Diff line change @@ -179,13 +179,13 @@ const Recommendation = ({
179
179
180
180
const renderButtonContent = ( redisStack : Maybe < boolean > , title : string , id : string ) => (
181
181
< EuiFlexGroup
182
- className = { styles . accordionButton }
182
+ className = { styles . fullWidth }
183
183
responsive = { false }
184
184
alignItems = "center"
185
185
justifyContent = "spaceBetween"
186
186
gutterSize = "none"
187
187
>
188
- < EuiFlexGroup alignItems = "center" gutterSize = "none" >
188
+ < EuiFlexGroup className = { styles . fullWidth } alignItems = "center" gutterSize = "none" >
189
189
< EuiFlexItem grow = { false } >
190
190
{ redisStack && (
191
191
< EuiLink
@@ -210,7 +210,7 @@ const Recommendation = ({
210
210
</ EuiLink >
211
211
) }
212
212
</ EuiFlexItem >
213
- < EuiFlexItem grow >
213
+ < EuiFlexItem grow className = "truncateText" >
214
214
{ title }
215
215
</ EuiFlexItem >
216
216
< EuiFlexItem grow = { false } >
Original file line number Diff line number Diff line change 16
16
.euiAccordion__button {
17
17
padding : 4px 18px ;
18
18
border-bottom : 1px solid transparent ;
19
- color : var (--htmlColor ) !important ;
20
- background-color : var (--recommendationBgColor ) !important ;
19
+ color : var (--euiTextSubduedColor ) !important ;
20
+ background-color : var (--recommendationsBgColor ) !important ;
21
21
font-size : 14px ;
22
- font-weight : 500 ;
22
+ font-weight : 400 ;
23
23
24
24
transition : border-bottom-color ease 0.3s ;
25
25
26
26
.euiIEFlexWrapFix {
27
27
display : inline-block ;
28
- width : 100% ;
28
+ width : calc (100% - 28px );
29
+ }
30
+
31
+ .truncateText {
32
+ display : block ;
29
33
}
30
34
}
31
35
32
36
.euiAccordion.euiAccordion-isOpen {
33
37
.euiAccordion__button {
34
38
border-bottom-color : var (--controlsBorderColor );
39
+ background-color : var (--recommendationBgColor ) !important ;
40
+ color : var (--htmlColor ) !important ;
41
+ font-weight : 500 ;
42
+ }
43
+
44
+ .truncateText {
45
+ display : flex ;
46
+ overflow : visible ;
47
+ white-space : normal ;
35
48
}
36
49
}
37
50
38
51
.euiPanel {
39
52
background : var (--recommendationsBgColor ) !important ;
40
53
padding-bottom : 0 !important ;
41
54
}
55
+
56
+ .euiAccordion__iconWrapper {
57
+ display : flex ;
58
+ justify-content : center ;
59
+ align-items : center ;
60
+ }
61
+
62
+ .euiAccordion__buttonReverse .euiAccordion__icon {
63
+ width : 12px ;
64
+ height : 12px ;
65
+ vertical-align : middle ;
66
+ }
42
67
}
43
68
}
44
69
104
129
}
105
130
}
106
131
107
- .accordionButton {
132
+ .fullWidth {
108
133
width : 100% ;
109
134
}
110
135
You can’t perform that action at this time.
0 commit comments