Fix EmptyView styling
This commit is contained in:
@@ -9,7 +9,19 @@
|
||||
import { EmptyView, EmptyViewProps } from '@/components/util/EmptyView.tsx';
|
||||
|
||||
export function EmptyViewAbsoluteCentered({ sx, ...emptyViewProps }: EmptyViewProps) {
|
||||
return <EmptyView {...emptyViewProps} sx={{ position: 'absolute', width: '100%', height: '100%', ...sx }} />;
|
||||
return (
|
||||
<EmptyView
|
||||
{...emptyViewProps}
|
||||
sx={{
|
||||
position: 'absolute',
|
||||
height: undefined,
|
||||
top: '50%',
|
||||
left: '50%',
|
||||
transform: 'translate(-50%, -50%)',
|
||||
...sx,
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
EmptyViewAbsoluteCentered.defaultProps = {
|
||||
|
||||
Reference in New Issue
Block a user