mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-23 04:51:49 +08:00
refactor(editor): update surface-ref placeholder (#11440)
Close [BS-2996](https://linear.app/affine-design/issue/BS-2996/删除的-inserted-frame-需要更新样式)
This commit is contained in:
@@ -17,6 +17,8 @@ export const surfaceRefToolbarModuleConfig: ToolbarModuleConfig = {
|
||||
actions: [
|
||||
{
|
||||
id: 'a.surface-ref-title',
|
||||
when: ctx =>
|
||||
!!ctx.getCurrentBlockByType(SurfaceRefBlockComponent)?.referenceModel,
|
||||
content: ctx => {
|
||||
const surfaceRefBlock = ctx.getCurrentBlockByType(
|
||||
SurfaceRefBlockComponent
|
||||
|
||||
Reference in New Issue
Block a user