slate-preview: make it full screen

This commit is contained in:
jimmylee 2020-08-23 16:53:16 -07:00
parent 980bd0230c
commit e370f73995
2 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,6 @@ const STYLES_ROOT = css`
const STYLES_ROOT_CONTENT = css`
position: relative;
padding: 88px 24px 88px 24px;
width: 100%;
height: 100%;
display: flex;

View File

@ -171,6 +171,8 @@ export default class SceneSlate extends React.Component {
return o.id !== id;
});
// NOTE(jim): Every time we remove an object from a slate.
// We will want to remove the object from the layouts too.
const keys = Object.keys(this.state.layouts);
let layouts = this.state.layouts;
for (let j = 0; j < keys.length; j++) {