@@ -215,6 +215,6 @@ export default function ClusterInfo(props: TClusterInfo) {
}
]}
/>
-
+ >
);
}
diff --git a/desktop/frontend/src/applications/pgsql/components/delete_dialog.module.scss b/desktop/frontend/src/applications/pgsql/components/delete_dialog.module.scss
index 2d7bbe1c57e..e99c76dbd70 100644
--- a/desktop/frontend/src/applications/pgsql/components/delete_dialog.module.scss
+++ b/desktop/frontend/src/applications/pgsql/components/delete_dialog.module.scss
@@ -54,9 +54,8 @@
}
.loading {
- width: 280px !important;
- height: 64px;
- padding: 0 !important;
+ width: 260px !important;
+ padding: 8px 12px !important;
border-radius: 16px !important;
}
diff --git a/desktop/frontend/src/applications/pgsql/components/delete_dialog.tsx b/desktop/frontend/src/applications/pgsql/components/delete_dialog.tsx
index a5b53ebc2bb..981ed848ff2 100644
--- a/desktop/frontend/src/applications/pgsql/components/delete_dialog.tsx
+++ b/desktop/frontend/src/applications/pgsql/components/delete_dialog.tsx
@@ -99,11 +99,7 @@ export default function DeletePgsqlDialog(props: DialogComponentProps) {
diff --git a/desktop/frontend/src/applications/pgsql/components/drawer.module.scss b/desktop/frontend/src/applications/pgsql/components/drawer.module.scss
index 346611864e6..97244a7a0f3 100644
--- a/desktop/frontend/src/applications/pgsql/components/drawer.module.scss
+++ b/desktop/frontend/src/applications/pgsql/components/drawer.module.scss
@@ -31,7 +31,7 @@
background-color: #fff;
background-image: url('/images/pgsql/pgsql_bg.png');
background-size: cover;
- border-radius: 16px 0px 0px 16px;
+ border-radius: 8px 0px 0px 0px;
}
@keyframes drawer-open {
diff --git a/desktop/frontend/src/applications/pgsql/components/events_dialog.tsx b/desktop/frontend/src/applications/pgsql/components/events_dialog.tsx
index 0dbc23148e8..6fbc1b3facf 100644
--- a/desktop/frontend/src/applications/pgsql/components/events_dialog.tsx
+++ b/desktop/frontend/src/applications/pgsql/components/events_dialog.tsx
@@ -1,5 +1,6 @@
import { useQuery } from '@tanstack/react-query';
import clsx from 'clsx';
+import Iconfont from 'components/iconfont';
import request from 'services/request';
import useSessionStore from 'stores/session';
import Button from './button';
@@ -35,11 +36,9 @@ export default function PgsqlEventsDialog(props: PgsqlEventsDialog) {
{status}
-
+
{items?.length === 0 &&
暂无数据
}
diff --git a/desktop/frontend/src/applications/pgsql/front_page.module.scss b/desktop/frontend/src/applications/pgsql/front_page.module.scss
index d8ea8659281..8d94f3fb5ed 100644
--- a/desktop/frontend/src/applications/pgsql/front_page.module.scss
+++ b/desktop/frontend/src/applications/pgsql/front_page.module.scss
@@ -10,7 +10,10 @@
}
.empty {
- height: 100%;
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
display: flex;
align-items: center;
justify-content: center;
diff --git a/desktop/frontend/src/applications/pgsql/front_page.tsx b/desktop/frontend/src/applications/pgsql/front_page.tsx
index 3d45add8966..bfc1dd8c081 100644
--- a/desktop/frontend/src/applications/pgsql/front_page.tsx
+++ b/desktop/frontend/src/applications/pgsql/front_page.tsx
@@ -27,7 +27,11 @@ function FrontPage() {
const [pgsqlStatus, setPgsqlStatus] = useState('');
const { currentApp } = useAppStore();
- const { data: pgsqlLists } = useQuery(
+ const {
+ data: pgsqlLists,
+ isSuccess,
+ isError
+ } = useQuery(
['getAllPgsql'],
async () => {
const res = await request.post('/api/pgsql/getAll', { kubeconfig });
@@ -88,66 +92,68 @@ function FrontPage() {