diff --git a/packages/frontend/core/src/blocksuite/ai/chat-panel/components/add-popover.ts b/packages/frontend/core/src/blocksuite/ai/chat-panel/components/add-popover.ts index f64d3bc2b7..07ca99a7a7 100644 --- a/packages/frontend/core/src/blocksuite/ai/chat-panel/components/add-popover.ts +++ b/packages/frontend/core/src/blocksuite/ai/chat-panel/components/add-popover.ts @@ -147,7 +147,9 @@ export class ChatPanelAddPopover extends SignalWatcher( height="30px" data-id="upload" .text=${'Upload files (pdf, txt, csv)'} + hover=${this._activatedItemIndex === items.length + 1} @click=${this._addFileChip} + @mousemove=${() => (this._activatedItemIndex = items.length + 1)} > ${UploadIcon()} diff --git a/packages/frontend/core/src/blocksuite/ai/chat-panel/components/chip.ts b/packages/frontend/core/src/blocksuite/ai/chat-panel/components/chip.ts index 1820329126..dd61efa48c 100644 --- a/packages/frontend/core/src/blocksuite/ai/chat-panel/components/chip.ts +++ b/packages/frontend/core/src/blocksuite/ai/chat-panel/components/chip.ts @@ -31,6 +31,11 @@ export class ChatPanelChip extends SignalWatcher( color: var(--affine-error-color); background: var(--affine-background-error-color); } + .chip-card-content { + display: flex; + align-items: center; + justify-content: center; + } .chip-card[data-state='failed'] svg { color: var(--affine-error-color); } @@ -92,11 +97,13 @@ export class ChatPanelChip extends SignalWatcher( data-testid="chat-panel-chip" data-state=${this.state} > - ${this.icon} - +
+ ${this.icon} + + ${this.name} + ${this.tooltip} - ${this.name} - +
${this.closeable ? html`