Show synced nodes above non-synced nodes

This commit is contained in:
maciejhirsz
2018-07-19 13:00:30 +02:00
parent 520e4cd98f
commit a6df9dc8e6
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -15,6 +15,8 @@ export class Connection {
? `wss://${window.location.hostname}/feed/`
: `ws://${window.location.hostname}:8080`;
// private static readonly address = 'wss://telemetry.polkadot.io/feed/';
private static async socket(): Promise<WebSocket> {
let socket = await Connection.trySocket();
let timeout = TIMEOUT_BASE;
+3 -1
View File
@@ -10,6 +10,7 @@
top: 50%;
left: 50%;
cursor: pointer;
z-index: 1;
transition: background-color 0.25s linear;
}
@@ -18,11 +19,12 @@
}
.Node-Location-synced {
z-index: 2;
background: #d64ca8;
}
.Node-Location:hover {
z-index: 2;
z-index: 3;
background: #fff;
}