Add message for empty workspace; minor CSS tweak.

This commit is contained in:
Sean Lip
2016-10-05 17:52:57 -07:00
parent aea6dfbc1e
commit 891f5d846b
2 changed files with 5 additions and 1 deletions

View File

@@ -18,7 +18,7 @@
border-radius: 10px;
bottom: 80px;
left: 20px;
max-width: 300px;
max-width: 275px;
padding: 10px;
position: fixed;
}

View File

@@ -39,6 +39,10 @@ blocklyApp.WorkspaceComponent = ng.core
<blockly-workspace-tree [level]="0" [block]="block" [tree]="tree" [isTopLevel]="true">
</blockly-workspace-tree>
</ol>
<span *ngIf="workspace.topBlocks_.length === 0">
<i>Workspace is empty.</i>
</span>
</div>
</div>