Open-source, local-first AI agent for real work.
TypeScript agent-toolsai-agentbyokcoding-agentcross-platformdesktop-appdeveloper-toolselectronharnessknowledge-basellmwikilocal-firstmcpplugin-systemprivacy-firstskillstypescriptvettaworkflow-automation
fix(input-bar): 斜杠命令面板的描边与输入框一致
bent2685729a6c0cd1d0
diff --git a/apps/desktop/src/renderer/domains/conversation/components/command-panel/CommandPanelView.tsx b/apps/desktop/src/renderer/domains/conversation/components/command-panel/CommandPanelView.tsxindex d91ff5765..dcaaecec7 100644--- a/apps/desktop/src/renderer/domains/conversation/components/command-panel/CommandPanelView.tsx+++ b/apps/desktop/src/renderer/domains/conversation/components/command-panel/CommandPanelView.tsx@@ -88,8 +88,8 @@ export function CommandPanelView({// bottom 压过 100% 那 1px:底下正对着卡片的上描边(展开态置成透明,见// InputBarView),那 1px 不被盖住时会在接缝上留一条贯穿全宽的细线,// 两块面看着是被切开的。命令区自己的底边无描边,压下去正好补平。- // 不写描边色:缺省吃 base 层的 `* { border-border }`,聚焦态由 className- // 传 `border-primary/20` 覆盖,和输入卡片一起亮,否则接缝上下两截颜色不一样。+ // 描边色由 className 传入,须与输入卡片(MessageInputSurface)的静态/聚焦色一致,+ // 否则接缝上下两截深浅不同,看起来像描边粗细不一样。"absolute -inset-x-[var(--hairline,1px)] bottom-[calc(100%-var(--hairline,1px))] z-10 overflow-hidden rounded-t-[20px] border border-b-0 bg-input-bar-bg transition-[border-color] duration-200",className,]diff --git a/apps/desktop/src/renderer/domains/conversation/components/input-bar/InputBarView.tsx b/apps/desktop/src/renderer/domains/conversation/components/input-bar/InputBarView.tsxindex 886ecf315..b5e1caf73 100644--- a/apps/desktop/src/renderer/domains/conversation/components/input-bar/InputBarView.tsx+++ b/apps/desktop/src/renderer/domains/conversation/components/input-bar/InputBarView.tsx@@ -148,7 +148,7 @@ export function InputBarView({ model, className, classNames, children }: InputBaonSelectConnector={commands.onConnectorSelect}filter={commands.slashFilter}cwd={model.effectiveCwd || undefined}- className={model.isFocused ? "border-primary/20" : undefined}+ className={model.isFocused ? "border-primary/10" : "border-border/60 dark:border-border/70"}allowCompaction={commands.allowCompaction}/></PerfSendProfiler>