mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-26 02:35:58 +08: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 type { Store } from '@blocksuite/affine/store';
|
||||||
import {
|
import {
|
||||||
BlockIcon,
|
BlockIcon,
|
||||||
|
EdgelessIcon,
|
||||||
InsertBleowIcon as InsertBelowIcon,
|
InsertBleowIcon as InsertBelowIcon,
|
||||||
LinkedPageIcon,
|
LinkedPageIcon,
|
||||||
PageIcon,
|
PageIcon,
|
||||||
@@ -430,7 +431,7 @@ const SAVE_AS_BLOCK: ChatAction = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const ADD_TO_EDGELESS_AS_NOTE = {
|
const ADD_TO_EDGELESS_AS_NOTE = {
|
||||||
icon: PageIcon({ width: '20px', height: '20px' }),
|
icon: EdgelessIcon({ width: '20px', height: '20px' }),
|
||||||
title: 'Add to edgeless as note',
|
title: 'Add to edgeless as note',
|
||||||
showWhen: (host: EditorHost) => {
|
showWhen: (host: EditorHost) => {
|
||||||
if (host.std.store.readonly$.value) {
|
if (host.std.store.readonly$.value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user