mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
refactor(core): add to edgeless as note icon (#12656)
### TL;DR refactor(core): add to edgeless as note icon > CLOSE AI-152 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Style** - Updated the icon for the "Add to Edgeless as Note" chat action to improve visual representation. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user