File tree Expand file tree Collapse file tree 3 files changed +4
-12
lines changed
modules/data-widgets/src/themesource/datawidgets/web
pluggableWidgets/datagrid-web/src/components Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -432,10 +432,7 @@ $root: ".widget-datagrid";
432
432
& -refresh-container {
433
433
grid-column : 1 / -1 ;
434
434
padding : 0 ;
435
-
436
- & --hidden {
437
- display : none ;
438
- }
435
+ position : relative ;
439
436
}
440
437
441
438
& -refresh-indicator {
Original file line number Diff line number Diff line change 1
- import classNames from "classnames" ;
2
1
import { createElement , ReactElement } from "react" ;
3
2
4
- export function RefreshIndicator ( { show } : { show : boolean } ) : ReactElement {
3
+ export function RefreshIndicator ( ) : ReactElement {
5
4
return (
6
5
< div className = "tr" role = "row" >
7
- < div
8
- className = { classNames ( "th widget-datagrid-refresh-container" , {
9
- "widget-datagrid-refresh-container--hidden" : ! show
10
- } ) }
11
- >
6
+ < div className = "th widget-datagrid-refresh-container" >
12
7
< progress className = "widget-datagrid-refresh-indicator" />
13
8
</ div >
14
9
</ div >
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ const Main = observer(<C extends GridColumn>(props: WidgetProps<C>): ReactElemen
195
195
isLoading = { props . columnsLoading }
196
196
preview = { props . preview }
197
197
/>
198
- < RefreshIndicator show = { showRefreshIndicator } />
198
+ { showRefreshIndicator ? < RefreshIndicator /> : null }
199
199
< GridBody
200
200
isFirstLoad = { props . isFirstLoad }
201
201
isFetchingNextBatch = { props . isFetchingNextBatch }
You can’t perform that action at this time.
0 commit comments