File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
frontend/amundsen_application/static/js/components/Table Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -17,3 +17,5 @@ export const ARRAY_CLOSER = '] ';
17
17
export const MAP_LABEL = 'map' ;
18
18
export const MAP_OPENER = ' {' ;
19
19
export const MAP_CLOSER = '} ' ;
20
+
21
+ export const SCROLL_INTO_VIEW_BLOCK = 'center' ;
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import {
24
24
MAP_VALUE_NAME ,
25
25
MAP_KEY_DISPLAY_NAME ,
26
26
MAP_VALUE_DISPLAY_NAME ,
27
+ SCROLL_INTO_VIEW_BLOCK ,
27
28
} from './constants' ;
28
29
import './styles.scss' ;
29
30
@@ -798,7 +799,7 @@ const useTableHooks = ({
798
799
const expandRowRef = React . useRef < HTMLTableRowElement > ( null ) ;
799
800
React . useEffect ( ( ) => {
800
801
if ( expandRowRef . current !== null ) {
801
- expandRowRef . current . scrollIntoView ( ) ;
802
+ expandRowRef . current . scrollIntoView ( { block : SCROLL_INTO_VIEW_BLOCK } ) ;
802
803
}
803
804
} , [ ] ) ;
804
805
You can’t perform that action at this time.
0 commit comments