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:
L-Sun
2025-04-03 09:05:27 +00:00
parent dd109459a9
commit 56e98f26ff
8 changed files with 221 additions and 248 deletions
@@ -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