You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2024/03/22 19:11:25 UTC

(superset) branch master updated: fix(dashboard,css): center align 'waiting on database' (#27611)

This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 20007355d1 fix(dashboard,css): center align 'waiting on database' (#27611)
20007355d1 is described below

commit 20007355d195f0f16f41e4c053a5a12abf0ddde3
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Fri Mar 22 12:11:14 2024 -0700

    fix(dashboard,css): center align 'waiting on database' (#27611)
---
 superset-frontend/src/components/Chart/Chart.jsx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/superset-frontend/src/components/Chart/Chart.jsx b/superset-frontend/src/components/Chart/Chart.jsx
index b7d09dfd31..0401b68016 100644
--- a/superset-frontend/src/components/Chart/Chart.jsx
+++ b/superset-frontend/src/components/Chart/Chart.jsx
@@ -105,6 +105,7 @@ const defaultProps = {
 const Styles = styled.div`
   min-height: ${p => p.height}px;
   position: relative;
+  text-align: center;
 
   .chart-tooltip {
     opacity: 0.75;
@@ -132,6 +133,7 @@ const LoadingDiv = styled.div`
   position: absolute;
   left: 50%;
   top: 50%;
+  width: 80%;
   transform: translate(-50%, -50%);
 `;