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
31 changes: 17 additions & 14 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ import { fuzzySearch } from './shared/fuzzy-search.function';
align-items: center;
color: rgba(255, 255, 255, .5);
display: flex;
font-family: Consolas, monospace;
font-size: 12px;
font-weight: normal;
justify-content: space-between;
Expand Down Expand Up @@ -153,7 +154,6 @@ import { fuzzySearch } from './shared/fuzzy-search.function';
display: flex;
padding: 4px 3px;
width: 100%;
transition: background 0.2s ease-out;
}

.command-bar__scenario-link:hover,
Expand Down Expand Up @@ -245,7 +245,7 @@ import { fuzzySearch } from './shared/fuzzy-search.function';
}

/* Content */
.content {
.content__none {
align-items: center;
border: 0;
display: flex;
Expand All @@ -255,19 +255,20 @@ import { fuzzySearch } from './shared/fuzzy-search.function';
width: 100%;
}

.content__none {
.content__none-message {
font-family: Consolas, monospace;
max-width: 50%;
text-align: center;
}

.content__none em {
.content__none-message em {
color: #666;
}

`],
template: `
<div class="shield" *ngIf="commandBarActive" (click)="toggleCommandBar()"></div>
<div class="command-bar" *ngIf="commandBarActive" [class.command-bar--open]="commandBarActive">
<div class="command-bar" [class.command-bar--open]="commandBarActive">
<input
class="command-bar__filter"
type="text"
Expand Down Expand Up @@ -978,15 +979,17 @@ import { fuzzySearch } from './shared/fuzzy-search.function';
</div>
<section class="content">
<div class="content__none" *ngIf="!selectedSandboxAndScenarioKeys.sandboxKey">
<p *ngIf="totalSandboxes > 0">
The playground has {{totalSandboxes}} sandboxed component{{totalSandboxes > 1 ? 's' : ''}}.
</p>
<p *ngIf="totalSandboxes === 0">
The playground does not have any sandboxed components.
</p>
<p>
Search sandboxed components: <strong>ctrl + o</strong> <em>or</em> <strong>F1</strong>
</p>
<div class="content__none-message">
<p *ngIf="totalSandboxes > 0">
The playground has {{totalSandboxes}} sandboxed component{{totalSandboxes > 1 ? 's' : ''}}.
</p>
<p *ngIf="totalSandboxes === 0">
The playground does not have any sandboxed components.
</p>
<p>
Search sandboxed components: <strong>ctrl + o</strong> <em>or</em> <strong>F1</strong>
</p>
</div>
</div>
<ng-container *ngIf="selectedSandboxAndScenarioKeys.sandboxKey">
<ap-scenario [selectedSandboxAndScenarioKeys]="selectedSandboxAndScenarioKeys"></ap-scenario>
Expand Down