Skip to content

Commit

Permalink
chore: fix page editor (#7698)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saul-Mirone authored Jul 20, 2024
1 parent 630e2e4 commit 42035fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/presets/src/editors/page-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ export class PageEditor extends WithDisposable(ShadowlessElement) {
if (!this.doc.root) return nothing;

return html`
<div class="affine-edgeless-viewport">
<div
class=${this.hasViewport
? 'affine-page-viewport'
: 'page-editor-container'}
>
<editor-host
${ref(this._host)}
.doc=${this.doc}
Expand Down

0 comments on commit 42035fe

Please sign in to comment.