fix: provider and tool auth click not show

This commit is contained in:
Joel
2026-01-26 15:23:15 +08:00
parent d396d92059
commit f90f3287d8
3 changed files with 13 additions and 7 deletions

View File

@ -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">
{

View File

@ -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')}>

View File

@ -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')}>