mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 17:18:40 +08:00
fix/tooltip and onboarding ui (#25451)
This commit is contained in:
parent
0d8438ef40
commit
07dda61929
@ -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>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1171,6 +1171,11 @@ const translation = {
|
|||||||
back: '戻る',
|
back: '戻る',
|
||||||
learnMore: '詳細を見る',
|
learnMore: '詳細を見る',
|
||||||
aboutStartNode: '開始ノードについて。',
|
aboutStartNode: '開始ノードについて。',
|
||||||
|
escTip: {
|
||||||
|
press: '',
|
||||||
|
key: 'esc',
|
||||||
|
toDismiss: 'キーで閉じる',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1171,6 +1171,11 @@ const translation = {
|
|||||||
back: '返回',
|
back: '返回',
|
||||||
learnMore: '了解更多',
|
learnMore: '了解更多',
|
||||||
aboutStartNode: '关于开始节点。',
|
aboutStartNode: '关于开始节点。',
|
||||||
|
escTip: {
|
||||||
|
press: '按',
|
||||||
|
key: 'esc',
|
||||||
|
toDismiss: '键关闭',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user