diff --git a/pkgs/ui/.envrc b/pkgs/ui/.envrc
index 908ba51ad..730cbbe31 100644
--- a/pkgs/ui/.envrc
+++ b/pkgs/ui/.envrc
@@ -2,7 +2,7 @@
source_up
-files=(flake-module.nix package.json package-lock.json)
+files=(../../flake.nix ../theme default.nix flake-module.nix package.json package-lock.json)
if type nix_direnv_watch_file &>/dev/null; then
nix_direnv_watch_file "${files[@]}"
else
diff --git a/pkgs/ui/src/components/noDataOverlay/index.tsx b/pkgs/ui/src/components/noDataOverlay/index.tsx
index 11867cd47..6875c7413 100644
--- a/pkgs/ui/src/components/noDataOverlay/index.tsx
+++ b/pkgs/ui/src/components/noDataOverlay/index.tsx
@@ -75,7 +75,7 @@ export function NoDataOverlay(props: NoDataOverlayProps) {
- {label}
+ {label}
);
}
diff --git a/pkgs/ui/src/components/table/nodeTableContainer.tsx b/pkgs/ui/src/components/table/nodeTableContainer.tsx
index 59bc2b6c2..f74218d5a 100644
--- a/pkgs/ui/src/components/table/nodeTableContainer.tsx
+++ b/pkgs/ui/src/components/table/nodeTableContainer.tsx
@@ -13,6 +13,7 @@ import { visuallyHidden } from "@mui/utils";
import { NodeRow } from "./nodeRow";
import { Machine } from "@/api/model/machine";
+import { NoDataOverlay } from "../noDataOverlay";
interface HeadCell {
disablePadding: boolean;
@@ -163,35 +164,41 @@ export function NodeTableContainer(props: NodeTableContainerProps) {
);
return (
-
-
-
- {visibleRows.map((row, index) => {
- return (
-
- );
- })}
- {emptyRows > 0 && (
-
-
-
- )}
-
-
+ {tableData.length === 0 ? (
+
+
+
+ ) : (
+
+
+
+ {visibleRows.map((row, index) => {
+ return (
+
+ );
+ })}
+ {emptyRows > 0 && (
+
+
+
+ )}
+
+
+ )}
);
}