Skip to content

Commit 568d24a

Browse files
Remove margin repetition
1 parent a9c0f8e commit 568d24a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

add-on/src/popup/browser-action/gateway-status.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function statusEntry ({ label, labelLegend, value, check, itemClass = '', valueC
1010
labelLegend = labelLegend ? browser.i18n.getMessage(labelLegend) : label
1111
value = value || value === 0 ? value : offline
1212
return html`
13-
<div class="flex ${check ? '' : 'o-60'} ${itemClass}" title="${labelLegend}">
13+
<div class="flex mb1 ${check ? '' : 'o-60'} ${itemClass}" title="${labelLegend}">
1414
<span class="w-40 f7 ttu no-user-select">${label}</span>
1515
<span class="w-60 f7 tr monospace truncate force-select-all ${valueClass}" title="${value}">${value}</span>
1616
</div>
@@ -31,22 +31,19 @@ module.exports = function gatewayStatus ({
3131
label: 'panel_statusSwarmPeers',
3232
labelLegend: 'panel_statusSwarmPeersTitle',
3333
value: swarmPeers,
34-
check: swarmPeers,
35-
valueClass: 'mb1'
34+
check: swarmPeers
3635
})}
3736
${statusEntry({
3837
label: 'panel_statusGatewayAddress',
3938
labelLegend: 'panel_statusGatewayAddressTitle',
4039
value: gatewayAddress,
41-
check: gatewayAddress,
42-
itemClass: 'mb1'
40+
check: gatewayAddress
4341
})}
4442
${statusEntry({
4543
label: 'panel_statusApiAddress',
4644
labelLegend: 'panel_statusApiAddressTitle',
4745
value: api,
48-
check: gatewayVersion,
49-
itemClass: 'mb1'
46+
check: gatewayVersion
5047
})}
5148
</ul>
5249
`

0 commit comments

Comments
 (0)