Hide new columns when screen width is too small
This commit is contained in:
parent
4e55f5323e
commit
a26dc977ba
@ -10,7 +10,7 @@
|
||||
<thead>
|
||||
<th class="text-left" i18n="nodes.alias">Alias</th>
|
||||
<th class="liquidity text-right" i18n="node.liquidity">Liquidity</th>
|
||||
<th class="d-none d-md-table-cell text-right" i18n="node.liquidity">{{ currency$ | async }}</th>
|
||||
<th class="d-table-cell fiat text-right" [class]="{'widget': widget}">{{ currency$ | async }}</th>
|
||||
<th *ngIf="!widget" class="d-none d-md-table-cell channels text-right" i18n="lightning.channels">Channels</th>
|
||||
<th *ngIf="!widget" class="d-none d-md-table-cell timestamp text-right" i18n="transaction.first-seen|Transaction first seen">First seen</th>
|
||||
<th *ngIf="!widget" class="d-none d-md-table-cell timestamp text-right" i18n="lightning.last_update">Last update</th>
|
||||
@ -28,7 +28,7 @@
|
||||
<td class="text-right">
|
||||
<app-amount [satoshis]="node.capacity" [digitsInfo]="'1.2-2'" [noFiat]="true"></app-amount>
|
||||
</td>
|
||||
<td class="fiat d-none d-md-table-cell text-right">
|
||||
<td class="d-table-cell fiat text-right" [ngClass]="{'widget': widget}">
|
||||
<app-fiat [value]="node.capacity"></app-fiat>
|
||||
</td>
|
||||
<td *ngIf="!widget" class="d-none d-md-table-cell text-right">
|
||||
|
@ -45,4 +45,7 @@ tr, td, th {
|
||||
width: 15%;
|
||||
font-family: monospace;
|
||||
font-size: 14px;
|
||||
@media (max-width: 991px) {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,7 @@
|
||||
<th *ngIf="!widget" class="d-none d-md-table-cell text-right" i18n="node.liquidity">{{ currency$ | async }}</th>
|
||||
<th *ngIf="!widget" class="d-none d-md-table-cell timestamp text-right" i18n="transaction.first-seen|Transaction first seen">First seen</th>
|
||||
<th *ngIf="!widget" class="d-none d-md-table-cell timestamp text-right" i18n="lightning.last_update">Last update</th>
|
||||
<th class="d-none d-md-table-cell text-right" i18n="lightning.location">Location</th>
|
||||
<th class="geolocation d-table-cell text-right" i18n="lightning.location">Location</th>
|
||||
</thead>
|
||||
<tbody *ngIf="topNodesPerChannels$ | async as nodes">
|
||||
<tr *ngFor="let node of nodes;">
|
||||
@ -26,7 +26,7 @@
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
{{ node.channels | number }}
|
||||
{{ node.channels ? (node.channels | number) : '~' }}
|
||||
</td>
|
||||
<td *ngIf="!widget" class="d-none d-md-table-cell capacity text-right">
|
||||
<app-amount [satoshis]="node.capacity" [digitsInfo]="'1.2-2'" [noFiat]="true"></app-amount>
|
||||
@ -40,7 +40,7 @@
|
||||
<td *ngIf="!widget" class="d-none d-md-table-cell text-right">
|
||||
<app-timestamp [customFormat]="'yyyy-MM-dd'" [unixTime]="node.updatedAt" [hideTimeSince]="true"></app-timestamp>
|
||||
</td>
|
||||
<td class="d-none d-md-table-cell text-right text-truncate">
|
||||
<td class="geolocation d-table-cell text-right text-truncate">
|
||||
<app-geolocation [data]="node.geolocation" [type]="'list-isp'"></app-geolocation>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -44,8 +44,8 @@ tr, td, th {
|
||||
}
|
||||
}
|
||||
|
||||
.fiat {
|
||||
width: 15%;
|
||||
font-family: monospace;
|
||||
font-size: 14px;
|
||||
}
|
||||
.geolocation {
|
||||
@media (max-width: 991px) {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user