fix: remove workflow depth badge from timeline
This commit is contained in:
parent
9fc4790722
commit
37b22b583f
@ -706,20 +706,6 @@ export function AgentWorkflowPanelDarkV2({
|
||||
step,
|
||||
selectionValue: selections[step.key],
|
||||
});
|
||||
const deepestSelectedLevel = Math.max(
|
||||
0,
|
||||
...stepOptionLevels.map((level) => (level.selectedKey ? level.depth : 0))
|
||||
);
|
||||
const activeStepChildLabel =
|
||||
active && stepOptionLevels.length > 1
|
||||
? `${
|
||||
getWorkflowOptionDepthLabel(
|
||||
activeEmbeddedOptionLevel?.depth || 1
|
||||
)
|
||||
}`
|
||||
: deepestSelectedLevel > 1
|
||||
? `已到 ${deepestSelectedLevel} 级`
|
||||
: "";
|
||||
|
||||
return (
|
||||
<Fragment key={step.key}>
|
||||
@ -765,18 +751,6 @@ export function AgentWorkflowPanelDarkV2({
|
||||
) : null}
|
||||
</button>
|
||||
<div className="flex shrink-0 items-center gap-2">
|
||||
{activeStepChildLabel ? (
|
||||
<span
|
||||
className={cn(
|
||||
"inline-flex h-7 shrink-0 items-center rounded-full border px-2.5 text-[10px] leading-none",
|
||||
active
|
||||
? "border-emerald-300/24 bg-emerald-400/10 text-emerald-100/82"
|
||||
: "border-white/10 bg-white/[0.04] text-white/38"
|
||||
)}
|
||||
>
|
||||
{activeStepChildLabel}
|
||||
</span>
|
||||
) : null}
|
||||
{stepSelectedPath.length > 0 ? (
|
||||
<div className="flex shrink-0 items-center gap-1.5">
|
||||
{stepSelectedPath.map((option, optionIndex) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user