mirror of
https://github.com/apache/superset.git
synced 2026-04-23 10:04:45 +00:00
fix(native-filters): improve loading styles for filter component (#13794)
* fix(native-filters): improve loading styles for filter component * round up fractional grid unit * remove LoadingBox
This commit is contained in:
@@ -21,7 +21,11 @@ import React from 'react';
|
||||
import { styled } from '@superset-ui/core';
|
||||
import cls from 'classnames';
|
||||
|
||||
export type PositionOption = 'normal' | 'inline' | 'floating';
|
||||
export type PositionOption =
|
||||
| 'floating'
|
||||
| 'inline'
|
||||
| 'inline-centered'
|
||||
| 'normal';
|
||||
export interface Props {
|
||||
position?: PositionOption;
|
||||
className?: string;
|
||||
@@ -37,6 +41,11 @@ const LoaderImg = styled.img`
|
||||
margin: 0px;
|
||||
width: 30px;
|
||||
}
|
||||
&.inline-centered {
|
||||
margin: 0 auto;
|
||||
width: 30px;
|
||||
display: block;
|
||||
}
|
||||
&.floating {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
Reference in New Issue
Block a user