Skip to content

Commit

Permalink
feat: add empty judge in env-list
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfuboy committed Jul 15, 2022
1 parent 8fb3e20 commit 031cfd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
height: 100%;
}
.ace_editor {
height: 100% !important;
min-height: 200px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import { StorageService } from '../../services/storage';
@Component({
selector: 'env-list',
template: ` <div style="width:300px">
<span class="text-gray-400">Environment variable</span>
<span class="text-gray-400" *ngIf="envParams.length">Environment variable</span>
<!-- <span class="my-2">{{ item.name }}</span> -->
<div *ngFor="let it of envParams" class="flex items-center justify-between h-8">
<span class="px-1 w-1/3 text-gray-500 text-ellipsis overflow-hidden" [title]="it.name">{{ it.name }}</span>
<span class="px-1 w-2/3 text-gray-500 text-ellipsis overflow-hidden" [title]="it.value">{{ it.value }}</span>
</div>
<span class="text-gray-400">Global variable</span>
<span class="text-gray-400" *ngIf="gloablParams.length">Global variable</span>
<div *ngFor="let it of gloablParams" class="flex items-center justify-between h-8">
<span class="px-1 w-1/3 text-gray-500 text-ellipsis overflow-hidden" [title]="it.name">{{ it.name }}</span>
<span class="px-1 w-2/3 text-gray-500 text-ellipsis overflow-hidden" [title]="it.value">{{ it.value }}</span>
Expand Down

0 comments on commit 031cfd6

Please sign in to comment.