Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/lazy-editor/src/components/editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ export function Editor( {
() => ( {
...editorSettings,
...settings,
styles: [
...( editorSettings.styles ?? [] ),
...( settings?.isPreviewMode
? [ { css: 'body{min-height:100vh;}' } ]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is a "lazy-editor" concern. Why would the lazy-editor be full height by default? How is this solved in other places?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that it's based on canvas mode, why didn't we do the same here (I guess in "boot" package)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see what you mean. Looking at it now.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to boot package in #76211

: [] ),
],
} ),
[ editorSettings, settings ]
);
Expand Down
Loading