mirror of
https://github.com/langgenius/dify.git
synced 2026-04-13 22:57:26 +08:00
chore: some tiny ui fix
This commit is contained in:
parent
ec8754173f
commit
4d4c8b21ac
@ -60,7 +60,7 @@ const Panel: FC<NodePanelProps<HumanInputNodeType>> = ({
|
||||
|
||||
const [isExpandFormContent, {
|
||||
toggle: toggleExpandFormContent,
|
||||
}] = useBoolean(true)
|
||||
}] = useBoolean(false)
|
||||
const panelWidth = useStore(state => state.panelWidth)
|
||||
|
||||
return (
|
||||
@ -87,9 +87,9 @@ const Panel: FC<NodePanelProps<HumanInputNodeType>> = ({
|
||||
<div className='flex items-center '>
|
||||
<Button variant='ghost' className='flex items-center space-x-1 px-2 text-components-button-ghost-text'>
|
||||
<RiEyeLine className='size-3.5' />
|
||||
<div className='system-xs-medium'>Preview</div>
|
||||
<div className='system-xs-medium'>{t(`${i18nPrefix}.formContent.preview`)}</div>
|
||||
</Button>
|
||||
<div className='ml-3 mr-2 h-3 w-px bg-divider-regular'></div>
|
||||
<div className='mx-2 h-3 w-px bg-divider-regular'></div>
|
||||
<div className='flex items-center space-x-1'>
|
||||
<div className='flex size-6 cursor-pointer items-center justify-center rounded-md hover:bg-components-button-ghost-bg-hover' onClick={() => {
|
||||
copy(inputs.form_content)
|
||||
|
||||
@ -965,6 +965,7 @@ const translation = {
|
||||
title: 'Form Content',
|
||||
tooltip: 'What users will see after opening the form. Supports Markdown formatting.',
|
||||
hotkeyTip: 'Press <Key/> to insert variable, <CtrlKey/><Key/> to insert input field',
|
||||
preview: 'Preview',
|
||||
},
|
||||
userActions: {
|
||||
title: 'User Actions',
|
||||
|
||||
@ -965,6 +965,7 @@ const translation = {
|
||||
title: '表单内容',
|
||||
tooltip: '用户打开表单后看到的内容。支持 Markdown 格式。',
|
||||
hotkeyTip: '按 <Key/> 插入变量,按 <CtrlKey/><Key/> 插入输入字段',
|
||||
preview: '预览',
|
||||
},
|
||||
userActions: {
|
||||
title: '用户操作',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user