mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-12 20:26:04 +08:00
refactor(editor): remove redundant edgeless icons (#10169)
Continue [BS-2240](https://linear.app/affine-design/issue/BS-2240/%E6%B8%85%E7%90%86%E9%87%8D%E5%A4%8D%E7%9A%84icon) This PR removes `icons/edgeless.ts` and refactor with `@blocksuite/icons` for reducing redundant icons
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { EdgelessCRUDIdentifier } from '@blocksuite/affine-block-surface';
|
||||
import { RemoteCursor } from '@blocksuite/affine-components/icons';
|
||||
import type { RootBlockModel } from '@blocksuite/affine-model';
|
||||
import {
|
||||
getSelectedRect,
|
||||
@@ -12,6 +11,7 @@ import {
|
||||
type GfxModel,
|
||||
} from '@blocksuite/block-std/gfx';
|
||||
import { pickValues } from '@blocksuite/global/utils';
|
||||
import { MultiCursorDuotoneIcon } from '@blocksuite/icons/lit';
|
||||
import type { UserInfo } from '@blocksuite/store';
|
||||
import { css, html, nothing } from 'lit';
|
||||
import { state } from 'lit/decorators.js';
|
||||
@@ -247,7 +247,10 @@ export class EdgelessRemoteSelectionWidget extends WidgetComponent<RootBlockMode
|
||||
color: _remoteColorManager.get(id),
|
||||
})}
|
||||
>
|
||||
${RemoteCursor}
|
||||
${MultiCursorDuotoneIcon({
|
||||
width: '24px',
|
||||
height: '24px',
|
||||
})}
|
||||
<div
|
||||
class="remote-username"
|
||||
style=${styleMap({
|
||||
|
||||
Reference in New Issue
Block a user