Skip to content

Commit a326dc1

Browse files
committed
fix(site): use theme border color and standard max-height in batch delete dialogs
- Replace border-zinc-200 dark:border-zinc-700 with border-border - Replace max-h-[184px] with max-h-48 utility class - Add cancel button to workspaces batch delete dialog
1 parent f6b609a commit a326dc1

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

site/src/pages/TasksPage/BatchDeleteConfirmation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ const Tasks: FC<TasksStageProps> = ({ tasks }) => {
113113

114114
return (
115115
<>
116-
<ul className="list-none p-0 border border-solid border-zinc-200 dark:border-zinc-700 rounded-lg overflow-x-hidden overflow-y-auto max-h-[184px]">
116+
<ul className="list-none p-0 border border-solid border-border rounded-lg overflow-x-hidden overflow-y-auto max-h-48">
117117
{tasks.map((task) => (
118118
<li
119119
key={task.id}
120-
className="py-2 px-4 border-solid border-0 border-b border-zinc-200 dark:border-zinc-700 last:border-b-0"
120+
className="py-2 px-4 border-solid border-0 border-b border-border last:border-b-0"
121121
>
122122
<div className="flex items-center justify-between gap-6">
123123
<span className="font-medium text-content-primary max-w-[400px] overflow-hidden text-ellipsis whitespace-nowrap">

site/src/pages/WorkspacesPage/BatchDeleteConfirmation.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ export const BatchDeleteConfirmation: FC<BatchDeleteConfirmationProps> = ({
8787
onClose();
8888
}}
8989
title={`Delete ${workspaceCount}`}
90-
hideCancel
9190
confirmLoading={isLoading}
9291
confirmText={confirmText}
9392
onConfirm={onProceed}
@@ -145,11 +144,11 @@ const Workspaces: FC<StageProps> = ({ workspaces }) => {
145144

146145
return (
147146
<>
148-
<ul className="list-none p-0 border border-solid border-zinc-200 dark:border-zinc-700 rounded-lg overflow-x-hidden overflow-y-auto max-h-[184px]">
147+
<ul className="list-none p-0 border border-solid border-border rounded-lg overflow-x-hidden overflow-y-auto max-h-48">
149148
{workspaces.map((workspace) => (
150149
<li
151150
key={workspace.id}
152-
className="py-2 px-4 border-solid border-0 border-b border-zinc-200 dark:border-zinc-700 last:border-b-0"
151+
className="py-2 px-4 border-solid border-0 border-b border-border last:border-b-0"
153152
>
154153
<div className="flex items-center justify-between gap-6">
155154
<span className="font-medium text-content-primary max-w-[400px] overflow-hidden text-ellipsis whitespace-nowrap">

0 commit comments

Comments
 (0)