luci-mod-wireless: avoid signal badge wrapping in scan list
authorJo-Philipp Wich <jo@mein.io>
Wed, 1 Apr 2020 17:15:07 +0000 (19:15 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 1 Apr 2020 17:15:07 +0000 (19:15 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index 07b986879311a462fe9573c369ee9b8c62d5994f..09f921179035d10cc3d97392a15e8fcbc4e5a9f8 100644 (file)
@@ -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) {