diff --git a/packages/frontend/core/src/blocksuite/ai/chat-panel/index.ts b/packages/frontend/core/src/blocksuite/ai/chat-panel/index.ts
index ad1105a94..0e4abc86c 100644
--- a/packages/frontend/core/src/blocksuite/ai/chat-panel/index.ts
+++ b/packages/frontend/core/src/blocksuite/ai/chat-panel/index.ts
@@ -5,7 +5,6 @@ import { SignalWatcher, WithDisposable } from '@blocksuite/affine/global/lit';
import type { EditorHost } from '@blocksuite/affine/std';
import { ShadowlessElement } from '@blocksuite/affine/std';
import type { ExtensionType, Store } from '@blocksuite/affine/store';
-import { HelpIcon } from '@blocksuite/icons/lit';
import { type Signal, signal } from '@preact/signals-core';
import { css, html, type PropertyValues } from 'lit';
import { property, state } from 'lit/decorators.js';
@@ -68,21 +67,12 @@ export class ChatPanel extends SignalWatcher(
align-items: center;
z-index: 1;
- div:first-child {
+ .chat-panel-title-text {
font-size: 14px;
font-weight: 500;
color: var(--affine-text-secondary-color);
}
- div:last-child {
- width: 24px;
- height: 24px;
- display: flex;
- justify-content: center;
- align-items: center;
- cursor: pointer;
- }
-
svg {
width: 18px;
height: 18px;
@@ -385,20 +375,20 @@ export class ChatPanel extends SignalWatcher(
return html`
-
+
${isEmbedding
? html`Embedding ${done}/${total}`
: 'AFFiNE AI'}
-
{
- AIProvider.toggleGeneralAIOnboarding?.(true);
- }}
- >
- ${HelpIcon()}
-
+
`;
}
diff --git a/packages/frontend/core/src/blocksuite/ai/components/ai-chat-composer/ai-chat-composer.ts b/packages/frontend/core/src/blocksuite/ai/components/ai-chat-composer/ai-chat-composer.ts
index 1536cdae3..a8690e3c2 100644
--- a/packages/frontend/core/src/blocksuite/ai/components/ai-chat-composer/ai-chat-composer.ts
+++ b/packages/frontend/core/src/blocksuite/ai/components/ai-chat-composer/ai-chat-composer.ts
@@ -5,7 +5,6 @@ import type {
CopilotDocType,
} from '@affine/graphql';
import { SignalWatcher, WithDisposable } from '@blocksuite/affine/global/lit';
-import { NotificationProvider } from '@blocksuite/affine/shared/services';
import type { EditorHost } from '@blocksuite/affine/std';
import { ShadowlessElement } from '@blocksuite/affine/std';
import type { Store } from '@blocksuite/affine/store';
@@ -65,9 +64,6 @@ export class AIChatComposer extends SignalWatcher(
@property({ attribute: false })
accessor updateContext!: (context: Partial
) => void;
- @property({ attribute: false })
- accessor onHistoryCleared: (() => void) | undefined;
-
@property({ attribute: false })
accessor isVisible: Signal = signal(false);
@@ -97,6 +93,9 @@ export class AIChatComposer extends SignalWatcher(
@property({ attribute: false })
accessor portalContainer: HTMLElement | null = null;
+ @property({ attribute: false })
+ accessor sideBarWidth: Signal = signal(undefined);
+
@state()
accessor chips: ChatChip[] = [];
@@ -131,9 +130,9 @@ export class AIChatComposer extends SignalWatcher(
.networkSearchConfig=${this.networkSearchConfig}
.reasoningConfig=${this.reasoningConfig}
.docDisplayConfig=${this.docDisplayConfig}
- .cleanupHistories=${this._cleanupHistories}
.onChatSuccess=${this.onChatSuccess}
.trackOptions=${this.trackOptions}
+ .sideBarWidth=${this.sideBarWidth}
>