mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Add message for empty workspace; minor CSS tweak.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
border-radius: 10px;
|
||||
bottom: 80px;
|
||||
left: 20px;
|
||||
max-width: 300px;
|
||||
max-width: 275px;
|
||||
padding: 10px;
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user