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.

refactor(web): name the agent detail sidebar width flag isBelowMd (#45610)

yyhf54b2616dab8
diff --git a/web/features/agent-v2/agent-detail/detail-sidebar.tsx b/web/features/agent-v2/agent-detail/detail-sidebar.tsx
index a9a76af438d..75cba1d2d54 100644
--- a/web/features/agent-v2/agent-detail/detail-sidebar.tsx
+++ b/web/features/agent-v2/agent-detail/detail-sidebar.tsx
@@ -5,11 +5,11 @@ import { DetailSidebarFrame } from '@/app/components/detail-sidebar'
import { AgentDetailSection, AgentDetailTop } from './navigation'
export function AgentDetailSidebar() {
- const isBelowDesktop = useMediaQuery('(width < 48rem)', {})
+ const isBelowMd = useMediaQuery('(width < 48rem)', {})
return (
<DetailSidebarFrame
- compact={isBelowDesktop}
+ compact={isBelowMd}
renderTop={({ expand, onToggle }) => <AgentDetailTop expand={expand} onToggle={onToggle} />}
renderSection={({ expand }) => <AgentDetailSection expand={expand} />}
/>