From 3fbd1832eaa7ac1a4c01dbd25ef263dcb1a02937 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Mon, 28 Oct 2024 05:08:25 -0700 Subject: [PATCH] Left align navigation pills in task details (#1070) --- .../src/routes/tasks/detail/TaskDetails.tsx | 108 +++++++++--------- .../src/routes/tasks/detail/TaskRecording.tsx | 10 +- 2 files changed, 56 insertions(+), 62 deletions(-) diff --git a/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx b/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx index 48986f4e..625dfe42 100644 --- a/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx +++ b/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx @@ -274,61 +274,59 @@ function TaskDetails() { {failureReason} )} -
-
- { - return cn( - "cursor-pointer rounded-md px-2 py-1 text-muted-foreground", - { - "bg-primary-foreground text-foreground": isActive, - }, - ); - }} - > - Actions - - { - return cn( - "cursor-pointer rounded-md px-2 py-1 text-muted-foreground", - { - "bg-primary-foreground text-foreground": isActive, - }, - ); - }} - > - Recording - - { - return cn( - "cursor-pointer rounded-md px-2 py-1 text-muted-foreground", - { - "bg-primary-foreground text-foreground": isActive, - }, - ); - }} - > - Parameters - - { - return cn( - "cursor-pointer rounded-md px-2 py-1 text-muted-foreground", - { - "bg-primary-foreground text-foreground": isActive, - }, - ); - }} - > - Diagnostics - -
+
+ { + return cn( + "cursor-pointer rounded-sm px-3 py-2 hover:bg-slate-700", + { + "bg-slate-700": isActive, + }, + ); + }} + > + Actions + + { + return cn( + "cursor-pointer rounded-sm px-3 py-2 hover:bg-slate-700", + { + "bg-slate-700": isActive, + }, + ); + }} + > + Recording + + { + return cn( + "cursor-pointer rounded-sm px-3 py-2 hover:bg-slate-700", + { + "bg-slate-700": isActive, + }, + ); + }} + > + Parameters + + { + return cn( + "cursor-pointer rounded-sm px-3 py-2 hover:bg-slate-700", + { + "bg-slate-700": isActive, + }, + ); + }} + > + Diagnostics +
diff --git a/skyvern-frontend/src/routes/tasks/detail/TaskRecording.tsx b/skyvern-frontend/src/routes/tasks/detail/TaskRecording.tsx index 4ebf0076..05bb8b98 100644 --- a/skyvern-frontend/src/routes/tasks/detail/TaskRecording.tsx +++ b/skyvern-frontend/src/routes/tasks/detail/TaskRecording.tsx @@ -28,10 +28,8 @@ function TaskRecording() { if (taskIsLoading) { return ( -
-
- -
+
+
); } @@ -41,9 +39,7 @@ function TaskRecording() { } return recordingURL ? ( -
-
+