mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 07:35:53 +08:00
fix: Jinja switch not aligned in vertical direction (#4374)
This commit is contained in:
parent
3271e3e803
commit
66c8070da8
@ -130,7 +130,7 @@ const Editor: FC<Props> = ({
|
|||||||
}
|
}
|
||||||
hideArrow
|
hideArrow
|
||||||
>
|
>
|
||||||
<div className={cn(editionType === EditionType.jinja2 && 'border-black/5 bg-white', 'mb-1 flex h-[22px] items-center px-1.5 rounded-[5px] border border-transparent hover:border-black/5 space-x-0.5')}>
|
<div className={cn(editionType === EditionType.jinja2 && 'border-black/5 bg-white', 'flex h-[22px] items-center px-1.5 rounded-[5px] border border-transparent hover:border-black/5 space-x-0.5')}>
|
||||||
<Jinja className='w-6 h-3 text-gray-300' />
|
<Jinja className='w-6 h-3 text-gray-300' />
|
||||||
<Switch
|
<Switch
|
||||||
size='sm'
|
size='sm'
|
||||||
|
@ -167,7 +167,7 @@ const ConfigPrompt: FC<Props> = ({
|
|||||||
return true
|
return true
|
||||||
})()
|
})()
|
||||||
return (
|
return (
|
||||||
<div key={item.id} className='relative group'>
|
<div key={item.id || index} className='relative group'>
|
||||||
{canDrag && <DragHandle className='group-hover:block hidden absolute left-[-14px] top-2 w-3.5 h-3.5 text-gray-400' />}
|
{canDrag && <DragHandle className='group-hover:block hidden absolute left-[-14px] top-2 w-3.5 h-3.5 text-gray-400' />}
|
||||||
<ConfigPromptItem
|
<ConfigPromptItem
|
||||||
className={cn(canDrag && 'handle')}
|
className={cn(canDrag && 'handle')}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user