mirror of
https://github.com/langgenius/dify.git
synced 2026-03-28 01:29:55 +08:00
fix: provider and tool auth click not show
This commit is contained in:
@ -216,11 +216,13 @@ const Authorized = ({
|
||||
)
|
||||
}
|
||||
</PortalToFollowElemTrigger>
|
||||
<PortalToFollowElemContent className="z-[100]">
|
||||
<div className={cn(
|
||||
'max-h-[360px] overflow-y-auto rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-lg',
|
||||
popupClassName,
|
||||
)}
|
||||
<PortalToFollowElemContent className="z-[100]" data-plugin-auth-portal="true">
|
||||
<div
|
||||
className={cn(
|
||||
'max-h-[360px] overflow-y-auto rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur shadow-lg',
|
||||
popupClassName,
|
||||
)}
|
||||
data-plugin-auth-panel="true"
|
||||
>
|
||||
<div className="py-1">
|
||||
{
|
||||
|
||||
@ -283,6 +283,8 @@ const ToolBlockComponent: FC<ToolBlockComponentProps> = ({
|
||||
return
|
||||
if (target instanceof Element && target.closest('[data-readme-panel-root="true"], [data-readme-panel="true"]'))
|
||||
return
|
||||
if (target instanceof Element && target.closest('[data-plugin-auth-portal="true"], [data-plugin-auth-panel="true"]'))
|
||||
return
|
||||
if (target instanceof Element && target.closest('[data-modal-root="true"]'))
|
||||
return
|
||||
if (panelEl.contains(target))
|
||||
@ -487,7 +489,7 @@ const ToolBlockComponent: FC<ToolBlockComponentProps> = ({
|
||||
)}
|
||||
{!useModal && portalContainer && isSettingOpen && createPortal(
|
||||
<div
|
||||
className="absolute bottom-4 right-4 top-4 z-[999]"
|
||||
className="absolute bottom-4 right-4 top-4 z-[99]"
|
||||
data-tool-setting-panel="true"
|
||||
>
|
||||
<div className={cn('relative h-full min-h-20 w-[361px] overflow-y-auto rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur pb-4 shadow-lg backdrop-blur-sm', 'overflow-y-auto pb-2')}>
|
||||
|
||||
@ -352,6 +352,8 @@ const ToolGroupBlockComponent: FC<ToolGroupBlockComponentProps> = ({
|
||||
return
|
||||
if (target instanceof Element && target.closest('[data-readme-panel-root="true"], [data-readme-panel="true"]'))
|
||||
return
|
||||
if (target instanceof Element && target.closest('[data-plugin-auth-portal="true"], [data-plugin-auth-panel="true"]'))
|
||||
return
|
||||
if (target instanceof Element && target.closest('[data-modal-root="true"]'))
|
||||
return
|
||||
if (panelEl.contains(target))
|
||||
@ -749,7 +751,7 @@ const ToolGroupBlockComponent: FC<ToolGroupBlockComponentProps> = ({
|
||||
)}
|
||||
{!useModal && portalContainer && isSettingOpen && createPortal(
|
||||
<div
|
||||
className="absolute bottom-4 right-4 top-4 z-[999]"
|
||||
className="absolute bottom-4 right-4 top-4 z-[99]"
|
||||
data-tool-group-setting-panel="true"
|
||||
>
|
||||
<div className={cn('relative h-full min-h-20 w-[420px] overflow-y-auto rounded-2xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur pb-4 shadow-lg backdrop-blur-sm')}>
|
||||
|
||||
Reference in New Issue
Block a user