From a0bb8bd1cf2ecc4e17e60476c9f39b56c9f1d5c8 Mon Sep 17 00:00:00 2001 From: KodekaTeam Date: Sat, 4 Jul 2026 15:09:37 +0700 Subject: [PATCH] fix: stick table pagination to bottom of card when data is sparse --- src/app/page.tsx | 124 ++++------------------------------------------- 1 file changed, 9 insertions(+), 115 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 3cf98da..f51a4da 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -536,7 +536,14 @@ function DashboardContent() { {/* Servers table + Activity */}
{/* Servers table */} -
+
-
+
@@ -781,28 +788,6 @@ function DashboardContent() { itemLabel="servers" onPageChange={serverPagination.setCurrentPage} /> - {/* */} {/* Activity log */} @@ -935,97 +920,6 @@ function DashboardContent() { - - {/* Quick actions */} -
-

- Quick Actions -

-
- {[ - { - label: "Deploy Container", - icon: Container, - color: "#10b981", - href: "/containers", - }, - { - label: "Add Server", - icon: Server, - color: "#3b82f6", - href: "/servers", - }, - { - label: "Setup SSL", - icon: Shield, - color: "#8b5cf6", - href: "/ssl", - }, - { - label: "Open Terminal", - icon: Activity, - color: "#06b6d4", - href: "/terminal", - }, - { - label: "Add Domain", - icon: Globe, - color: "#f59e0b", - href: "/domains", - }, - { - label: "View Logs", - icon: Zap, - color: "#ef4444", - href: "/logs", - }, - ].map((action) => { - const Icon = action.icon; - return ( - { - (e.currentTarget as HTMLElement).style.background = - `${action.color}20`; - (e.currentTarget as HTMLElement).style.transform = - "translateY(-1px)"; - }} - onMouseLeave={(e) => { - (e.currentTarget as HTMLElement).style.background = - `${action.color}10`; - (e.currentTarget as HTMLElement).style.transform = - "translateY(0)"; - }} - > - - {action.label} - - ); - })} -
-
);