From da4de79a9dd3424afb6c97840ad14471107314b7 Mon Sep 17 00:00:00 2001 From: Oliver Kieselbach Date: Thu, 6 Aug 2026 17:10:15 +0200 Subject: [PATCH] web: keep Load all clear of Prev/Next on phone-width pagination (#126) --- .../app/dashboard/components/SessionTable.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/Web/autopilot-monitor-web/app/dashboard/components/SessionTable.tsx b/src/Web/autopilot-monitor-web/app/dashboard/components/SessionTable.tsx index eff9df82..c74c65cb 100644 --- a/src/Web/autopilot-monitor-web/app/dashboard/components/SessionTable.tsx +++ b/src/Web/autopilot-monitor-web/app/dashboard/components/SessionTable.tsx @@ -728,8 +728,11 @@ export function SessionTable({ Renders whenever there's somewhere to navigate (more local pages OR more on the server). */} {(totalPages > 1 || hasMore) && ( -
-
+
+ {/* On phones the page info and "Load all" stack vertically so the link sits + far left on its own line — not right next to the Previous button where + it gets tapped by accident. */} +
Page {currentPage} of {totalPages}{hasMore ? '+' : ''} ({sortedSessions.length}{hasMore ? '+' : ''} total sessions) @@ -740,20 +743,21 @@ export function SessionTable({ onLoadAll(); }} disabled={loadingMore} - className="text-sm font-medium text-green-700 hover:text-green-800 hover:underline transition-colors disabled:opacity-50 disabled:cursor-not-allowed disabled:no-underline" + className="whitespace-nowrap text-sm font-medium text-green-700 hover:text-green-800 hover:underline transition-colors disabled:opacity-50 disabled:cursor-not-allowed disabled:no-underline" title="Fetch all remaining sessions from the server so sorting and filters cover everything" > {loadingAll ? "Loading all..." : "Load all"} )}
-
+