Add ISP chart in the dashboard - Fix mobile layout - Start polishing
This commit is contained in:
@@ -3,18 +3,18 @@
|
||||
<table class="table table-borderless">
|
||||
<thead>
|
||||
<th class="alias text-left" i18n="nodes.alias">Alias</th>
|
||||
<th class="capacity text-right" i18n="node.capacity">Capacity</th>
|
||||
<th class="channels text-right" i18n="node.channels">Channels</th>
|
||||
<th class="capacity text-right" [class]="show" i18n="node.capacity">Capacity</th>
|
||||
<th class="channels text-right" [class]="show" i18n="node.channels">Channels</th>
|
||||
</thead>
|
||||
<tbody *ngIf="nodes$ | async as nodes; else skeleton">
|
||||
<tr *ngFor="let node of nodes; let i = index;">
|
||||
<td class="alias text-left">
|
||||
<a [routerLink]="['/lightning/node' | relativeUrl, node.public_key]">{{ node.alias }}</a>
|
||||
</td>
|
||||
<td class="capacity text-right">
|
||||
<td class="capacity text-right" [class]="show">
|
||||
<app-amount [satoshis]="node.capacity" digitsInfo="1.2-2"></app-amount>
|
||||
</td>
|
||||
<td class="channels text-right">
|
||||
<td class="channels text-right" [class]="show">
|
||||
{{ node.channels | number }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
.capacity.mobile-channels {
|
||||
@media (max-width: 767.98px) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.channels.mobile-capacity {
|
||||
@media (max-width: 767.98px) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,7 @@ import { Observable } from 'rxjs';
|
||||
})
|
||||
export class NodesListComponent implements OnInit {
|
||||
@Input() nodes$: Observable<any>;
|
||||
@Input() show: string;
|
||||
|
||||
constructor() { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user