From 3fe2ac4e468dcc35d9e5ad6802a28238b44588f3 Mon Sep 17 00:00:00 2001 From: yoyoyohamapi <8338436+yoyoyohamapi@users.noreply.github.com> Date: Tue, 3 Jun 2025 07:02:04 +0000 Subject: [PATCH] refactor(core): add to edgeless as note icon (#12656) ### TL;DR refactor(core): add to edgeless as note icon > CLOSE AI-152 ## Summary by CodeRabbit - **Style** - Updated the icon for the "Add to Edgeless as Note" chat action to improve visual representation. --- .../core/src/blocksuite/ai/_common/chat-actions-handle.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend/core/src/blocksuite/ai/_common/chat-actions-handle.ts b/packages/frontend/core/src/blocksuite/ai/_common/chat-actions-handle.ts index 1d76d6c242..06dba04e3f 100644 --- a/packages/frontend/core/src/blocksuite/ai/_common/chat-actions-handle.ts +++ b/packages/frontend/core/src/blocksuite/ai/_common/chat-actions-handle.ts @@ -34,6 +34,7 @@ import { GfxControllerIdentifier } from '@blocksuite/affine/std/gfx'; import type { Store } from '@blocksuite/affine/store'; import { BlockIcon, + EdgelessIcon, InsertBleowIcon as InsertBelowIcon, LinkedPageIcon, PageIcon, @@ -430,7 +431,7 @@ const SAVE_AS_BLOCK: ChatAction = { }; const ADD_TO_EDGELESS_AS_NOTE = { - icon: PageIcon({ width: '20px', height: '20px' }), + icon: EdgelessIcon({ width: '20px', height: '20px' }), title: 'Add to edgeless as note', showWhen: (host: EditorHost) => { if (host.std.store.readonly$.value) {