diff --git a/public/app/features/live/LiveConnectionWarning.tsx b/public/app/features/live/LiveConnectionWarning.tsx index f9c0f637fc3..4d761a34767 100644 --- a/public/app/features/live/LiveConnectionWarning.tsx +++ b/public/app/features/live/LiveConnectionWarning.tsx @@ -52,36 +52,28 @@ export class LiveConnectionWarning extends PureComponent { } return ( -
- -
+ ); } return null; } } -const getStyle = stylesFactory((theme: GrafanaTheme2) => { - return { - foot: css({ - position: 'fixed', - bottom: 0, - left: 0, - right: 0, - zIndex: 10000, - cursor: 'wait', - margin: theme.spacing(2), - }), - warn: css({ - maxWidth: '400px', - margin: 'auto', - }), - }; -}); +const getStyle = stylesFactory((theme: GrafanaTheme2) => ({ + warn: css({ + position: 'fixed', + bottom: 0, + left: '50%', + transform: 'translate(-50%)', + maxWidth: '400px', + zIndex: theme.zIndex.portal, + cursor: 'wait', + }), +}));