Chore: frontend infrastructure upgrade (#16420)

Co-authored-by: NFish <douxc512@gmail.com>
Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
Co-authored-by: twwu <twwu@dify.ai>
Co-authored-by: jZonG <jzongcode@gmail.com>
This commit is contained in:
Joel
2025-03-21 17:41:03 +08:00
committed by GitHub
parent e61415223b
commit 7709d9df20
1435 changed files with 13372 additions and 11612 deletions

View File

@@ -43,11 +43,11 @@ const ContextMenu: FC<ContextMenuProps> = (props: ContextMenuProps) => {
>
<PortalToFollowElemTrigger>
<Button size='small' className='px-1' onClick={handleClickTrigger}>
<RiMoreFill className='w-4 h-4' />
<RiMoreFill className='h-4 w-4' />
</Button>
</PortalToFollowElemTrigger>
<PortalToFollowElemContent className='z-10'>
<div className='flex flex-col w-[184px] rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-lg shadow-shadow-shadow-5 backdrop-blur-[5px]'>
<div className='flex w-[184px] flex-col rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-lg shadow-shadow-shadow-5 backdrop-blur-[5px]'>
<div className='flex flex-col p-1'>
{
options.map((option) => {
@@ -64,7 +64,7 @@ const ContextMenu: FC<ContextMenuProps> = (props: ContextMenuProps) => {
{
isShowDelete && (
<>
<Divider type='horizontal' className='h-[1px] bg-divider-subtle my-0' />
<Divider type='horizontal' className='my-0 h-[1px] bg-divider-subtle' />
<div className='p-1'>
<MenuItem
item={deleteOperation}

View File

@@ -19,7 +19,7 @@ const MenuItem: FC<MenuItemProps> = ({
return (
<div
className={cn(
'flex items-center justify-between px-2 py-1.5 cursor-pointer rounded-lg ',
'flex cursor-pointer items-center justify-between rounded-lg px-2 py-1.5 ',
isDestructive ? 'hover:bg-state-destructive-hover' : 'hover:bg-state-base-hover',
)}
onClick={() => {
@@ -27,7 +27,7 @@ const MenuItem: FC<MenuItemProps> = ({
}}
>
<div className={cn(
'flex-1 text-text-primary system-md-regular',
'system-md-regular flex-1 text-text-primary',
isDestructive && 'hover:text-text-destructive',
)}>
{item.name}