Skip to content

Commit 959833e

Browse files
committed
add layer type
1 parent 67d4ae7 commit 959833e

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

web-app/admin/src/app/admin/admin-layers/dashboard/layer-dashboard.component.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ <h2 class="page-title">Layers</h2>
3838
<i class="icon fa fa-map mr-2" aria-hidden="true"></i>
3939
<div class="w-100">
4040
<div class="strong">{{ layer.name }}</div>
41-
<div [matTooltip]="layer.description" [matTooltipDisabled]="
42-
!layer.description || layer.description.length <= numChars
43-
" matTooltipClass="mat-tooltip-event-desc" class="w-90">
44-
<p class="muted ellipsis">{{ layer.description }}</p>
41+
<div class="d-flex align-items-center">
42+
<p class="muted ellipsis description-text" [matTooltip]="layer.description"
43+
[matTooltipDisabled]="!layer.description || layer.description.length <= 100"
44+
matTooltipClass="mat-tooltip-event-desc">
45+
{{ layer.description || 'No description' }}
46+
</p>
47+
<span *ngIf="layer.type">{{ layer.type }}</span>
4548
</div>
4649
</div>
4750
</div>

web-app/admin/src/app/admin/admin-layers/dashboard/layer-dashboard.component.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,4 +333,9 @@ $max-height: 72.8vh;
333333

334334
.w-90 {
335335
width: 90% !important;
336+
}
337+
338+
.description-text {
339+
max-width: 40%;
340+
margin-bottom: 0;
336341
}

0 commit comments

Comments
 (0)