mirror of
https://github.com/jeffvli/sonixd.git
synced 2026-04-29 02:32:37 -04:00
Set new loader centered position
This commit is contained in:
@@ -16,7 +16,7 @@ import {
|
||||
SidebarNavItem,
|
||||
} from './styled';
|
||||
import { StyledButton } from '../shared/styled';
|
||||
import { InfoModal } from '../modal/PageModal';
|
||||
import { InfoModal } from '../modal/Modal';
|
||||
import placeholderImg from '../../img/placeholder.png';
|
||||
import SidebarPlaylists from './SidebarPlaylists';
|
||||
import { setSidebar } from '../../redux/configSlice';
|
||||
|
||||
@@ -52,7 +52,7 @@ const SidebarPlaylists = ({ width }: any) => {
|
||||
{({ height }: any) => (
|
||||
<>
|
||||
{isLoading ? (
|
||||
<CenterLoader />
|
||||
<CenterLoader absolute />
|
||||
) : (
|
||||
<List
|
||||
height={height - 25}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import React from 'react';
|
||||
import { Loader } from 'rsuite';
|
||||
|
||||
const CenterLoader = () => {
|
||||
const CenterLoader = ({ absolute }: any) => {
|
||||
return (
|
||||
<div style={{ height: '100%' }}>
|
||||
<Loader style={{ top: '50%', left: '50%', position: 'absolute' }} />
|
||||
<Loader style={{ top: '50%', left: '50%', position: absolute ? 'absolute' : 'relative' }} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -220,7 +220,7 @@ const GridViewType = ({
|
||||
gridRef={gridRef}
|
||||
/>
|
||||
) : loading ? (
|
||||
<CenterLoader />
|
||||
<CenterLoader absolute />
|
||||
) : (
|
||||
<></>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user