luci-mod-network: fix output style of diagnostics commands
authorJo-Philipp Wich <jo@mein.io>
Fri, 27 Jan 2023 12:58:40 +0000 (13:58 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 27 Jan 2023 13:00:33 +0000 (14:00 +0100)
Ensure that the output textarea uses a monospace font and preformatted text.

Fixes: 5f2d305476 ("luci-mod-network: convert diagnostic page to LuCI look and feel")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/diagnostics.js

index 90ad67aeaf065ed32bac634ac480e03ed3dd8f0a..8e400fb46bd75ec27cf76059e8dee8168621c2cc 100644 (file)
@@ -163,7 +163,7 @@ return view.extend({
                                E('div', { 'id' : 'command-output'},
                                        E('textarea', {
                                                'id': 'widget.command-output',
-                                               'style': 'width: 100%',
+                                               'style': 'width: 100%; font-family:monospace; white-space:pre',
                                                'readonly': true,
                                                'wrap': 'off',
                                                'rows': '20'