File tree Expand file tree Collapse file tree 3 files changed +28
-3
lines changed
public/pages/workflow_detail Expand file tree Collapse file tree 3 files changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -327,6 +327,9 @@ export function ResizableWorkspace(props: ResizableWorkspaceProps) {
327
327
display : 'flex' ,
328
328
flexDirection : 'column' ,
329
329
overflow : 'hidden' ,
330
+ //avoid console panel scroll bar when first render
331
+ overflowX : 'hidden' ,
332
+ overflowY : 'hidden' ,
330
333
} }
331
334
>
332
335
< div
@@ -480,6 +483,8 @@ export function ResizableWorkspace(props: ResizableWorkspaceProps) {
480
483
maxWidth : '100%' ,
481
484
marginBottom : '15px' ,
482
485
paddingBottom : '5px' ,
486
+ scrollbarWidth : 'none' ,
487
+ msOverflowStyle : 'none' ,
483
488
} }
484
489
>
485
490
< EuiPanel
@@ -491,11 +496,17 @@ export function ResizableWorkspace(props: ResizableWorkspaceProps) {
491
496
borderRadius : 0 ,
492
497
borderTop : 'none' ,
493
498
overflowX : 'hidden' ,
494
- overflowY : 'auto' ,
499
+ overflowY :
500
+ consoleErrorMessages . length > 0 || ! isEmpty ( ingestResponse )
501
+ ? 'auto'
502
+ : 'hidden' ,
495
503
width : '100%' ,
496
504
maxWidth : '100%' ,
497
505
minWidth : 0 ,
506
+ scrollbarWidth : 'none' ,
507
+ msOverflowStyle : 'none' ,
498
508
} }
509
+ className = "console-panel-no-scroll"
499
510
>
500
511
< EuiFlexGroup
501
512
alignItems = "center"
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ export function Console(props: ConsoleProps) {
177
177
style = { {
178
178
maxHeight : hasIngestResponse ? '15vh' : '25vh' ,
179
179
minHeight : '100px' ,
180
- overflow : 'auto' ,
180
+ overflow : hasErrors ? 'auto' : 'hidden ',
181
181
width : '100%' ,
182
182
maxWidth : '100%' ,
183
183
minWidth : 0 ,
@@ -262,7 +262,7 @@ export function Console(props: ConsoleProps) {
262
262
style = { {
263
263
height : hasErrors ? '12vh' : '22vh' ,
264
264
minHeight : '100px' ,
265
- overflow : 'auto' ,
265
+ overflow : hasIngestResponse ? 'auto' : 'hidden ',
266
266
width : '100%' ,
267
267
maxWidth : '100%' ,
268
268
minWidth : 0 ,
Original file line number Diff line number Diff line change 8
8
text-overflow : ellipsis ;
9
9
overflow : hidden ;
10
10
}
11
+
12
+ .console-panel-no-scroll ::-webkit-scrollbar {
13
+ display : none ;
14
+ width : 0 ;
15
+ height : 0 ;
16
+ }
17
+
18
+ .console-panel-no-scroll ::-webkit-scrollbar-track {
19
+ display : none ;
20
+ }
21
+
22
+ .console-panel-no-scroll ::-webkit-scrollbar-thumb {
23
+ display : none ;
24
+ }
You can’t perform that action at this time.
0 commit comments