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 */} {/* ESC tip below modal */}
{isShow && ( {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"> <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>Press</span> <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"> <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> </kbd>
<span>to dismiss</span> <span>{t('workflow.onboarding.escTip.toDismiss')}</span>
</div> </div>
)} )}
</> </>

View File

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

View File

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

View File

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

View File

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