Skip to content

Commit 610c840

Browse files
authored
fix: fix border color pipeline studio, fix tree view of execution details (#1069)
1 parent ee79b08 commit 610c840

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

packages/ui/src/components/treeview.tsx

+12-12
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ const Folder = forwardRef<HTMLDivElement, FolderProps & React.HTMLAttributes<HTM
197197
<AccordionPrimitive.Item {...props} value={value} className="relative -mb-3 size-full overflow-hidden pb-3">
198198
<AccordionPrimitive.Trigger
199199
className={cn(
200-
`flex w-full items-center gap-1 rounded-md text-sm px-5`,
200+
`flex w-full gap-1 rounded-md text-sm px-5`,
201201
className,
202202
{
203203
'rounded-md': isSelect && isSelectable,
@@ -212,17 +212,17 @@ const Folder = forwardRef<HTMLDivElement, FolderProps & React.HTMLAttributes<HTM
212212
>
213213
<CanaryIcon
214214
name="chevron-right"
215-
className={cn('text-icons-1', expendedItems?.includes(value) && 'rotate-90')}
215+
className={cn('text-icons-1 mt-1', expendedItems?.includes(value) && 'rotate-90')}
216216
size={12}
217217
/>
218-
<div className="flex w-full items-center justify-between">
219-
<div className="flex items-center">
220-
{getStatusIcon(status)}
221-
<span className="ml-1 leading-tight text-foreground-8">
218+
<div className="flex w-full justify-between gap-x-2">
219+
<div className="flex gap-x-2">
220+
<div className="flex-none flex size-5 items-center justify-center">{getStatusIcon(status)}</div>
221+
<span className="leading-tight text-foreground-8 mt-0.5 text-left">
222222
{element}&nbsp;<span className="text-foreground-5">({React.Children.count(children)})</span>
223223
</span>
224224
</div>
225-
<span className="text-foreground-4">{duration ?? '--'}</span>
225+
<span className="flex-none text-foreground-4">{duration ?? '--'}</span>
226226
</div>
227227
</AccordionPrimitive.Trigger>
228228
<AccordionPrimitive.Content className="relative h-full overflow-visible px-5 text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down">
@@ -300,12 +300,12 @@ const File = forwardRef<
300300
selectItem(value)
301301
}}
302302
>
303-
<div className="relative flex w-full items-center justify-between pl-4">
304-
<div className="flex items-center">
305-
{getStatusIcon(status)}
306-
<span className="ml-1 leading-tight text-foreground-8">{children}</span>
303+
<div className="relative flex w-full justify-between pl-4 gap-x-2">
304+
<div className="flex gap-x-2">
305+
<div className="flex-none flex size-5 items-center justify-center">{getStatusIcon(status)}</div>
306+
<span className="leading-tight text-foreground-8 mt-0.5 text-left">{children}</span>
307307
</div>
308-
<span className="text-foreground-4">{duration ?? '--'}</span>
308+
<span className="text-foreground-4 flex-none">{duration ?? '--'}</span>
309309
</div>
310310
</AccordionPrimitive.Trigger>
311311
</AccordionPrimitive.Item>

packages/ui/src/views/pipeline-edit/components/pipeline-studio-footer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const PipelineStudioFooter: React.FC<PipelineStudioFooterProps> = (props:
3535
return (
3636
<footer
3737
className={
38-
'bg-grey-6 text-grey-60 flex h-10 shrink-0 items-center justify-between border-t border-[#1d1d20] px-4 text-[12px] font-normal not-italic leading-[15px]'
38+
'bg-grey-6 text-grey-60 flex h-10 shrink-0 items-center justify-between border-t border-borders-5 px-4 text-[12px] font-normal not-italic leading-[15px]'
3939
}
4040
>
4141
<div className="flex items-center gap-2">

0 commit comments

Comments
 (0)