File tree Expand file tree Collapse file tree 7 files changed +41
-12
lines changed
side-panels/panels/ai-assistant/components/shared
table-column-search-trigger
pages/database-analysis/components/top-keys Expand file tree Collapse file tree 7 files changed +41
-12
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,17 @@ const ChatHistory = (props: Props) => {
60
60
data-testid = { `ai-message-${ messageType } _${ id } ` }
61
61
>
62
62
{ error && ( < EuiIcon type = "alert" className = { styles . errorIcon } /> ) }
63
- < MarkdownMessage
64
- onRunCommand = { onRunCommand }
65
- onMessageRendered = { onMessageRendered }
66
- modules = { modules }
67
- >
68
- { content }
69
- </ MarkdownMessage >
63
+ { messageType === AiChatMessageType . HumanMessage
64
+ ? content
65
+ : (
66
+ < MarkdownMessage
67
+ onRunCommand = { onRunCommand }
68
+ onMessageRendered = { onMessageRendered }
69
+ modules = { modules }
70
+ >
71
+ { content }
72
+ </ MarkdownMessage >
73
+ ) }
70
74
</ div >
71
75
</ div >
72
76
< ErrorMessage error = { error } onRestart = { onRestart } />
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ const MarkdownMessage = (props: Props) => {
29
29
} = props
30
30
31
31
const [ content , setContent ] = useState ( '' )
32
+ const [ parseAsIs , setParseAsIs ] = useState ( false )
32
33
33
34
const ChatCodeBlock = useCallback ( ( codeProps : CodeProps ) =>
34
35
( < CodeBlock { ...codeProps } modules = { modules } onRunCommand = { onRunCommand } /> ) , [ modules ] )
@@ -43,7 +44,7 @@ const MarkdownMessage = (props: Props) => {
43
44
} )
44
45
setContent ( formated )
45
46
} catch {
46
- // ignore
47
+ setParseAsIs ( true )
47
48
}
48
49
}
49
50
@@ -56,14 +57,18 @@ const MarkdownMessage = (props: Props) => {
56
57
}
57
58
} , [ content ] )
58
59
60
+ if ( parseAsIs ) {
61
+ return < > { children } </ >
62
+ }
63
+
59
64
return (
60
65
// @ts -ignore
61
66
< JsxParser
62
67
components = { components }
63
68
blacklistedTags = { [ 'iframe' , 'script' ] }
64
69
autoCloseVoidElements
65
70
jsx = { content }
66
- onError = { ( e ) => console . error ( e ) }
71
+ onError = { ( ) => setParseAsIs ( true ) }
67
72
/>
68
73
)
69
74
}
Original file line number Diff line number Diff line change 11
11
12
12
:global {
13
13
.euiFormControlLayout--group {
14
- border : 0 ;
14
+ border : 0 !important ;
15
15
height : 100% ;
16
16
}
17
17
Original file line number Diff line number Diff line change @@ -199,6 +199,10 @@ $footerHeight: 38px;
199
199
padding : 18px 4px 18px 20px ;
200
200
}
201
201
202
+ .tableRowColumn {
203
+ min-height : 100% ;
204
+ }
205
+
202
206
.tableRowCell {
203
207
padding : 8px 6px 8px 20px !important ;
204
208
min-height : 42px ;
Original file line number Diff line number Diff line change 30
30
:global(.euiButton.euiButton-isDisabled.euiButton--fill.euiButton--secondary ) {
31
31
background : var (--browserComponentActive ) !important ;
32
32
color : var (--wbActiveIconColor ) !important ;
33
- opacity : 1 ;
33
+ opacity : 1 !important ;
34
34
}
35
35
}
36
36
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ main.euiPageBody {
60
60
}
61
61
62
62
.euiLoadingSpinner {
63
- border-top-color : var ( --euiColorDarkestShade ) !important ;
63
+ border-top-color : transparent ;
64
64
}
65
65
66
66
.link-underline {
Original file line number Diff line number Diff line change @@ -60,3 +60,19 @@ body .euiSuperSelect__listbox {
60
60
.euiPanel {
61
61
border-color : var (--euiColorLightShade );
62
62
}
63
+
64
+ .euiFormControlLayout--group .euiFormLabel {
65
+ background-color : var (--tableDarkestBorderColor );
66
+ color : var (--htmlColor )
67
+ }
68
+
69
+ .euiTab {
70
+ color : var (--euiTextColor );
71
+ & .euiTab-isSelected {
72
+ color : var (--euiColorPrimary );
73
+ }
74
+ }
75
+
76
+ .euiFilePicker-hasFiles .euiFilePicker__promptText {
77
+ color : var (--euiTextColor );
78
+ }
You can’t perform that action at this time.
0 commit comments