Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(desktop): 修复自动任务模型菜单层级 (#4017)

Dashb3614447148f
diff --git a/apps/desktop/src/renderer/components/new-chat/ModelSelector.tsx b/apps/desktop/src/renderer/components/new-chat/ModelSelector.tsx
index 3a7227ca81..0a36fc2528 100644
--- a/apps/desktop/src/renderer/components/new-chat/ModelSelector.tsx
+++ b/apps/desktop/src/renderer/components/new-chat/ModelSelector.tsx
@@ -264,7 +264,7 @@ function ModelOptionsFloatingPanel({
<div
ref={refs.setFloating}
data-radix-popper-content-wrapper=""
- className="z-50 w-[248px]"
+ className={cn('z-50 w-[248px]', className)}
style={{
...floatingStyles,
visibility: isPositioned ? undefined : 'hidden',
diff --git a/apps/desktop/src/renderer/components/new-chat/UnifiedFlyoutHost.tsx b/apps/desktop/src/renderer/components/new-chat/UnifiedFlyoutHost.tsx
index ad3d681c2b..7969d61740 100644
--- a/apps/desktop/src/renderer/components/new-chat/UnifiedFlyoutHost.tsx
+++ b/apps/desktop/src/renderer/components/new-chat/UnifiedFlyoutHost.tsx
@@ -148,7 +148,7 @@ export function UnifiedFlyoutHost({
// 见上:MorphPopover 的 outside / focusin 判定靠这个属性认「自己人」。
data-radix-popper-content-wrapper=""
data-unified-flyout-wrapper=""
- className="fixed z-50"
+ className={cn('fixed z-50', className)}
style={{
width: FLYOUT_WIDTH + UNIFIED_FLYOUT_GAP,
// 行与浮层之间那条缝隙由**外层包装自己吃掉**:包装比卡片宽 gap 并把这段留白