Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(web): make plugin detail drawer non-modal (#41473)

yyh5a5b9c6fec1c
diff --git a/web/app/components/plugins/plugin-detail-panel/index.tsx b/web/app/components/plugins/plugin-detail-panel/index.tsx
index 22f5a212cab..094898ea58e 100644
--- a/web/app/components/plugins/plugin-detail-panel/index.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/index.tsx
@@ -4,7 +4,6 @@ import type { PluginDetail } from '@/app/components/plugins/types'
import { cn } from '@langgenius/dify-ui/cn'
import {
Drawer,
- DrawerBackdrop,
DrawerContent,
DrawerPopup,
DrawerPortal,
@@ -68,18 +67,18 @@ const PluginDetailPanel: FC<Props> = ({
return (
<Drawer
open={!!detail}
- modal
+ modal={false}
+ disablePointerDismissal
swipeDirection="right"
onOpenChange={(open) => {
if (!open) onHide()
}}
>
<DrawerPortal>
- <DrawerBackdrop className="bg-transparent" />
- <DrawerViewport>
+ <DrawerViewport className="pointer-events-none">
<DrawerPopup
className={cn(
- 'justify-start bg-components-panel-bg! p-0! shadow-xl data-[swipe-direction=right]:top-2 data-[swipe-direction=right]:right-2 data-[swipe-direction=right]:bottom-2 data-[swipe-direction=right]:h-[calc(100dvh-16px)] data-[swipe-direction=right]:w-100 data-[swipe-direction=right]:max-w-[calc(100vw-1rem)] data-[swipe-direction=right]:rounded-2xl data-[swipe-direction=right]:border-[0.5px] data-[swipe-direction=right]:border-components-panel-border',
+ 'pointer-events-auto touch-auto justify-start bg-components-panel-bg! p-0! shadow-xl data-[swipe-direction=right]:top-2 data-[swipe-direction=right]:right-2 data-[swipe-direction=right]:bottom-2 data-[swipe-direction=right]:h-[calc(100dvh-16px)] data-[swipe-direction=right]:w-100 data-[swipe-direction=right]:max-w-[calc(100vw-1rem)] data-[swipe-direction=right]:rounded-2xl data-[swipe-direction=right]:border-[0.5px] data-[swipe-direction=right]:border-components-panel-border',
)}
>
<DrawerContent className="flex min-h-0 flex-1 flex-col p-0 pb-0">