File tree Expand file tree Collapse file tree
modules/data-widgets/src/themesource/datawidgets/web
pluggableWidgets/datagrid-web/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -432,6 +432,10 @@ $root: ".widget-datagrid";
432432 & -refresh-container {
433433 grid-column : 1 / -1 ;
434434 padding : 0 ;
435+
436+ & --hidden {
437+ display : none ;
438+ }
435439 }
436440
437441 & -refresh-indicator {
@@ -444,6 +448,9 @@ $root: ".widget-datagrid";
444448 color : var (--brand-primary , $dg-brand-primary );
445449 height : 4px ;
446450 width : 100% ;
451+ position : absolute ;
452+ left : 0 ;
453+ right : 0 ;
447454
448455 & ::-webkit-progress-bar {
449456 background-color : transparent ;
Original file line number Diff line number Diff line change 1+ import classNames from "classnames" ;
12import { createElement , ReactElement } from "react" ;
23
3- export function RefreshIndicator ( ) : ReactElement {
4+ export function RefreshIndicator ( { show } : { show : boolean } ) : ReactElement {
45 return (
56 < div className = "tr" role = "row" >
6- < div className = "th widget-datagrid-refresh-container" >
7+ < div
8+ className = { classNames ( "th widget-datagrid-refresh-container" , {
9+ "widget-datagrid-refresh-container--hidden" : ! show
10+ } ) }
11+ >
712 < progress className = "widget-datagrid-refresh-indicator" />
813 </ div >
914 </ 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
195195 isLoading = { props . columnsLoading }
196196 preview = { props . preview }
197197 />
198- { showRefreshIndicator ? < RefreshIndicator /> : null }
198+ < RefreshIndicator show = { showRefreshIndicator } />
199199 < GridBody
200200 isFirstLoad = { props . isFirstLoad }
201201 isFetchingNextBatch = { props . isFetchingNextBatch }
You can’t perform that action at this time.
0 commit comments