mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-21 20:11:43 +08:00
chore: merge blocksuite source code (#9213)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import type { RootBlockModel } from '@blocksuite/affine-model';
|
||||
import { BlockComponent } from '@blocksuite/block-std';
|
||||
import { html } from 'lit';
|
||||
|
||||
export class MindmapRootBlock extends BlockComponent<RootBlockModel> {
|
||||
override render() {
|
||||
return html`
|
||||
<style>
|
||||
.affine-mini-mindmap-root {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
background-size: 20px 20px;
|
||||
background-color: var(--affine-background-primary-color);
|
||||
background-image: radial-gradient(
|
||||
var(--affine-edgeless-grid-color) 1px,
|
||||
var(--affine-background-primary-color) 1px
|
||||
);
|
||||
}
|
||||
</style>
|
||||
<div class="affine-mini-mindmap-root">
|
||||
${this.host.renderChildren(this.model)}
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user