From: Jo-Philipp Wich Date: Wed, 1 Apr 2020 17:15:07 +0000 (+0200) Subject: luci-mod-wireless: avoid signal badge wrapping in scan list X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=515069f9ecf7eb3d5b83bb79ae1dfa799bf9630d;p=oweals%2Fluci.git luci-mod-wireless: avoid signal badge wrapping in scan list Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js index 07b986879..09f921179 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js @@ -53,7 +53,7 @@ function render_signal_badge(signalPercent, signalValue, noiseValue, wrap) { _('SNR'), signalValue - noiseValue); } else if (signalValue != null && signalValue != 0) { - value = '%d %s'.format(signalValue, _('dBm')); + value = '%d\xa0%s'.format(signalValue, _('dBm')); title = '%s: %d %s'.format(_('Signal'), signalValue, _('dBm')); } else if (signalPercent > -1) {