chore: update release notes and fix various issues

- Updated release notes to include new DMXAPI service and fixed knowledge base search results issue.
- Enhanced drag-and-drop functionality for message selection and resolved memory exceptions in translation replies.
- Added styling adjustments for context menu and improved layout in CodeBlockView and MessageGroup components.
This commit is contained in:
kangfenmao
2025-05-26 14:55:47 +08:00
parent 2dc81ab8c8
commit 13d440b0b6
6 changed files with 23 additions and 24 deletions
+1 -1
View File
@@ -245,7 +245,7 @@ class McpService {
const loginShellEnv = await this.getLoginShellEnv()
// Bun not support proxy https://github.com/oven-sh/bun/issues/16812
if (cmd.endsWith('bun')) {
if (cmd.includes('bun')) {
this.removeProxyEnv(loginShellEnv)
}
@@ -4,3 +4,9 @@
border-top-left-radius: 10px;
border-left: 0.5px solid var(--color-border);
}
.group-container {
.context-menu-container {
width: 100%;
}
}
@@ -250,7 +250,6 @@ const CodeBlockView: React.FC<Props> = ({ children, language, onSave }) => {
const CodeBlockWrapper = styled.div<{ $isInSpecialView: boolean }>`
/* FIXME: 在 bubble style 中撑开一些宽度*/
min-width: min(calc(60vw - var(--sidebar-width)), 700px);
position: relative;
.code-toolbar {
@@ -74,7 +74,7 @@ const ContextMenu: React.FC<ContextMenuProps> = ({ children, onContextMenu }) =>
]
return (
<ContextContainer onContextMenu={handleContextMenu}>
<ContextContainer onContextMenu={handleContextMenu} className="context-menu-container">
{contextMenuPosition && (
<Dropdown
overlayStyle={{ position: 'fixed', left: contextMenuPosition.x, top: contextMenuPosition.y, zIndex: 1000 }}
@@ -190,16 +190,6 @@ const MessageGroup = ({ messages, topic, hidePresetMessages, registerMessageElem
</MessageWrapper>
)
const wrappedMessage = (
<SelectableMessage
key={`selectable-${message.id}`}
messageId={message.id}
topic={topic}
isClearMessage={message.type === 'clear'}>
{messageContent}
</SelectableMessage>
)
if (isGridGroupMessage) {
return (
<Popover
@@ -221,7 +211,15 @@ const MessageGroup = ({ messages, topic, hidePresetMessages, registerMessageElem
)
}
return wrappedMessage
return (
<SelectableMessage
key={`selectable-${message.id}`}
messageId={message.id}
topic={topic}
isClearMessage={message.type === 'clear'}>
{messageContent}
</SelectableMessage>
)
},
[
isGrid,