fix/tooltip and onboarding ui (#25451)

This commit is contained in:
lyzno1 2025-09-10 10:40:14 +08:00 committed by GitHub
parent 0d8438ef40
commit 07dda61929
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 20 additions and 5 deletions

View File

@ -84,12 +84,12 @@ const WorkflowOnboardingModal: FC<WorkflowOnboardingModalProps> = ({
{/* ESC tip below modal */}
{isShow && (
<div className="body-xs-regular pointer-events-none fixed left-1/2 top-1/2 z-[70] flex -translate-x-1/2 translate-y-[160px] items-center gap-1 text-text-quaternary">
<span>Press</span>
<div className="body-xs-regular pointer-events-none fixed left-1/2 top-1/2 z-[70] flex -translate-x-1/2 translate-y-[165px] items-center gap-1 text-text-quaternary">
<span>{t('workflow.onboarding.escTip.press')}</span>
<kbd className="system-kbd inline-flex h-4 min-w-4 items-center justify-center rounded bg-components-kbd-bg-gray px-1 text-text-tertiary">
esc
{t('workflow.onboarding.escTip.key')}
</kbd>
<span>to dismiss</span>
<span>{t('workflow.onboarding.escTip.toDismiss')}</span>
</div>
)}
</>

View File

@ -69,7 +69,7 @@ const Blocks = ({
<Tooltip
key={block.type}
position='right'
popupClassName='w-[200px]'
popupClassName='w-[200px] rounded-xl'
needsDelay={false}
popupContent={(
<div>

View File

@ -1171,6 +1171,11 @@ const translation = {
back: 'Back',
learnMore: 'Learn more',
aboutStartNode: 'about start node.',
escTip: {
press: 'Press',
key: 'esc',
toDismiss: 'to dismiss',
},
},
}

View File

@ -1171,6 +1171,11 @@ const translation = {
back: '戻る',
learnMore: '詳細を見る',
aboutStartNode: '開始ノードについて。',
escTip: {
press: '',
key: 'esc',
toDismiss: 'キーで閉じる',
},
},
}

View File

@ -1171,6 +1171,11 @@ const translation = {
back: '返回',
learnMore: '了解更多',
aboutStartNode: '关于开始节点。',
escTip: {
press: '按',
key: 'esc',
toDismiss: '键关闭',
},
},
}