revert(workflow): remove timezone label from trigger-schedule node display

This commit is contained in:
lyzno1 2025-10-13 16:51:04 +08:00
parent 7560e2427d
commit ebcf98c137
No known key found for this signature in database
1 changed files with 3 additions and 5 deletions

View File

@ -4,7 +4,6 @@ import { useTranslation } from 'react-i18next'
import type { ScheduleTriggerNodeType } from './types'
import type { NodeProps } from '@/app/components/workflow/types'
import { getNextExecutionTime } from './utils/execution-time-calculator'
import TimezoneLabel from '@/app/components/base/timezone-label'
const i18nPrefix = 'workflow.nodes.triggerSchedule'
@ -19,11 +18,10 @@ const Node: FC<NodeProps<ScheduleTriggerNodeType>> = ({
{t(`${i18nPrefix}.nextExecutionTime`)}
</div>
<div className="flex h-[26px] items-center rounded-md bg-workflow-block-parma-bg px-2 text-xs text-text-secondary">
<div className="flex w-0 grow items-center gap-1 overflow-hidden">
<span className="truncate" title={`${getNextExecutionTime(data)} ${data.timezone}`}>
<div className="w-0 grow">
<div className="truncate" title={getNextExecutionTime(data)}>
{getNextExecutionTime(data)}
</span>
<TimezoneLabel timezone={data.timezone} inline className="shrink-0 text-xs" />
</div>
</div>
</div>
</div>