git ssb

16+

Dominic / patchbay



Commit 62404afd51be20fc4b7925c7ad3b91a4a4b34915

add labels to Network

mix irving committed on 1/11/2017, 4:34:15 AM
Parent: de6fa889ba488210fb104d474068e8a076e4b24c

Files changed

modules_extra/network.jschanged
modules_extra/network.mcsschanged
modules_extra/network.jsView
@@ -155,13 +155,13 @@
155155 h('section.type', [
156156 computed(peer, getType),
157157 ]),
158158 h('section.source', [
159- 'source: ',
159 + h('label', 'source:'),
160160 h('code', source)
161161 ]),
162162 h('section.state', [
163- 'state: ',
163 + h('label', 'state:'),
164164 h('i', {
165165 className: computed(state, (state) => '-'+state)
166166 }),
167167 h('code', when(state, state, 'not connected'))
@@ -184,13 +184,13 @@
184184 )
185185 ]),
186186 h('section.ping', [
187187 h('div.rtt', [
188- 'rtt: ',
188 + h('label', 'rtt:'),
189189 h('code', computed(ping.rtt.mean, duration))
190190 ]),
191191 h('div.skew', [
192- 'skew: ',
192 + h('label', 'skew:'),
193193 h('code', computed(ping.skew.mean, duration))
194194 ]),
195195 ]),
196196 h('section.address', [
modules_extra/network.mcssView
@@ -50,8 +50,9 @@
5050 }
5151
5252 section.source {
5353 flex-basis: 100%
54 + label { margin-right: .5rem }
5455 }
5556
5657 section.state {
5758 display: flex
@@ -59,8 +60,9 @@
5960 align-items: center
6061
6162 margin-right: 2rem
6263
64 + label { margin-right: .5rem }
6365 i {
6466 width: 1rem
6567 height: 1rem
6668 border-radius: .5rem
@@ -95,12 +97,14 @@
9597 $textSubtle
9698
9799 div.rtt {
98100 flex-basis: 8rem
101 + label { margin-right: .5rem }
99102 }
100103
101104 div.skew {
102105 flex-basis: 8rem
106 + label { margin-right: .5rem }
103107 }
104108 }
105109
106110 section.address{

Built with git-ssb-web