mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: remove min-h-screen
This commit is contained in:
@@ -46,20 +46,20 @@ export default function SwarmMonitorCard({ serverId }: Props) {
|
|||||||
|
|
||||||
const totalNodes = nodes.length;
|
const totalNodes = nodes.length;
|
||||||
const activeNodesCount = nodes.filter(
|
const activeNodesCount = nodes.filter(
|
||||||
(node) => node.Status === "Ready"
|
(node) => node.Status === "Ready",
|
||||||
).length;
|
).length;
|
||||||
const managerNodesCount = nodes.filter(
|
const managerNodesCount = nodes.filter(
|
||||||
(node) =>
|
(node) =>
|
||||||
node.ManagerStatus === "Leader" || node.ManagerStatus === "Reachable"
|
node.ManagerStatus === "Leader" || node.ManagerStatus === "Reachable",
|
||||||
).length;
|
).length;
|
||||||
const activeNodes = nodes.filter((node) => node.Status === "Ready");
|
const activeNodes = nodes.filter((node) => node.Status === "Ready");
|
||||||
const managerNodes = nodes.filter(
|
const managerNodes = nodes.filter(
|
||||||
(node) =>
|
(node) =>
|
||||||
node.ManagerStatus === "Leader" || node.ManagerStatus === "Reachable"
|
node.ManagerStatus === "Leader" || node.ManagerStatus === "Reachable",
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen">
|
<div>
|
||||||
<div className="w-full max-w-7xl mx-auto space-y-6 py-4">
|
<div className="w-full max-w-7xl mx-auto space-y-6 py-4">
|
||||||
<header className="flex items-center justify-between">
|
<header className="flex items-center justify-between">
|
||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
@@ -102,7 +102,6 @@ export default function SwarmMonitorCard({ serverId }: Props) {
|
|||||||
Active Nodes
|
Active Nodes
|
||||||
</CardTitle>
|
</CardTitle>
|
||||||
<Badge variant="green">Online</Badge>
|
<Badge variant="green">Online</Badge>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div className="p-2 bg-emerald-600/20 text-emerald-600 rounded-md">
|
<div className="p-2 bg-emerald-600/20 text-emerald-600 rounded-md">
|
||||||
<Activity className="h-4 w-4 text-muted-foreground dark:text-emerald-600" />
|
<Activity className="h-4 w-4 text-muted-foreground dark:text-emerald-600" />
|
||||||
@@ -137,7 +136,6 @@ export default function SwarmMonitorCard({ serverId }: Props) {
|
|||||||
Manager Nodes
|
Manager Nodes
|
||||||
</CardTitle>
|
</CardTitle>
|
||||||
<Badge variant="green">Online</Badge>
|
<Badge variant="green">Online</Badge>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div className="p-2 bg-emerald-600/20 text-emerald-600 rounded-md">
|
<div className="p-2 bg-emerald-600/20 text-emerald-600 rounded-md">
|
||||||
<Monitor className="h-4 w-4 text-muted-foreground dark:text-emerald-600" />
|
<Monitor className="h-4 w-4 text-muted-foreground dark:text-emerald-600" />
|
||||||
|
|||||||
Reference in New Issue
Block a user