diff --git a/js/PrefHelpers.js b/js/PrefHelpers.js index 5658ce9b02514e01e64625d39e667436c3de065b..e6a37c6e8dae97be7db2ec2b2d678b585218cea3 100644 --- a/js/PrefHelpers.js +++ b/js/PrefHelpers.js @@ -401,8 +401,9 @@ const Helpers = { container.innerHTML = ` <li> <h3 style="margin-top: 0">${plugin}</h3> - ${reply.stderr ? `<pre class="small text-error">${reply.stderr}</pre>` : ''} - ${reply.stdour ? `<pre class="small text-success">${reply.stdout}</pre>` : ''} + <div class='text-error'>${reply.result}</div> + ${reply.stderr ? `<pre class="small text-error pre-wrap">${reply.stderr}</pre>` : ''} + ${reply.stdour ? `<pre class="small text-success pre-wrap">${reply.stdout}</pre>` : ''} <p class="small"> ${App.FormFields.icon("error_outline") + " " + __("Exited with RC: %d").replace("%d", reply.git_status)} </p> @@ -502,8 +503,8 @@ const Helpers = { container.innerHTML += ` <li><h3 style="margin-top: 0">${p.plugin}</h3> - ${p.rv.e ? `<pre class="small text-error">${p.rv.e}</pre>` : ''} - ${p.rv.o ? `<pre class="small text-success">${p.rv.o}</pre>` : ''} + ${p.rv.e ? `<pre class="small text-error pre-wrap">${p.rv.e}</pre>` : ''} + ${p.rv.o ? `<pre class="small text-success pre-wrap">${p.rv.o}</pre>` : ''} <p class="small"> ${p.rv.s ? App.FormFields.icon("error_outline") + " " + __("Exited with RC: %d").replace("%d", p.rv.s) : App.FormFields.icon("check") + " " + __("Update done.")} @@ -551,8 +552,8 @@ const Helpers = { container.innerHTML += ` <li><h3 style="margin-top: 0">${p.plugin}</h3> - ${p.rv.e ? `<pre class="small text-error">${p.rv.e}</pre>` : ''} - ${p.rv.o ? `<pre class="small text-success">${p.rv.o}</pre>` : ''} + ${p.rv.e ? `<pre class="small text-error pre-wrap">${p.rv.e}</pre>` : ''} + ${p.rv.o ? `<pre class="small text-success pre-wrap">${p.rv.o}</pre>` : ''} <p class="small"> ${p.rv.s ? App.FormFields.icon("error_outline") + " " + __("Exited with RC: %d").replace("%d", p.rv.s) : App.FormFields.icon("check") + " " + __("Ready to update")} diff --git a/themes/compact.css b/themes/compact.css index 19a04c7f8aeb924c081dfe8b5f8661a1ee584d2a..230aab7da1f7f836760eb68567370dd9f7c07892 100644 --- a/themes/compact.css +++ b/themes/compact.css @@ -1034,6 +1034,10 @@ body.ttrss_main .pull-left, body.ttrss_utility .pull-left { float: left; } +body.ttrss_main .pre-wrap, +body.ttrss_utility .pre-wrap { + white-space: pre-wrap; +} body.ttrss_main .text-error, body.ttrss_utility .text-error { color: #b94a48; diff --git a/themes/compact_night.css b/themes/compact_night.css index af94c9c7dc7c750dae8118dd7e9c384f7b491b31..12737d903bd83c1823bff224f715ad3e4f19a803 100644 --- a/themes/compact_night.css +++ b/themes/compact_night.css @@ -1034,6 +1034,10 @@ body.ttrss_main .pull-left, body.ttrss_utility .pull-left { float: left; } +body.ttrss_main .pre-wrap, +body.ttrss_utility .pre-wrap { + white-space: pre-wrap; +} body.ttrss_main .text-error, body.ttrss_utility .text-error { color: #b94a48; diff --git a/themes/light.css b/themes/light.css index 075b949fe719f88459933b11ab872339a1ecf3f9..f8da03ca0ac1215afc8b28b4c8c0657a00975646 100644 --- a/themes/light.css +++ b/themes/light.css @@ -1034,6 +1034,10 @@ body.ttrss_main .pull-left, body.ttrss_utility .pull-left { float: left; } +body.ttrss_main .pre-wrap, +body.ttrss_utility .pre-wrap { + white-space: pre-wrap; +} body.ttrss_main .text-error, body.ttrss_utility .text-error { color: #b94a48; diff --git a/themes/light/tt-rss.less b/themes/light/tt-rss.less index a4cf2f0986ec7f3eee01b73935bc29922d33ba5c..9044afb246210aff6996db21911912664353b3d8 100644 --- a/themes/light/tt-rss.less +++ b/themes/light/tt-rss.less @@ -1229,6 +1229,10 @@ body.ttrss_main, body.ttrss_utility { float : left; } + .pre-wrap { + white-space : pre-wrap; + } + .text-error { color: #b94a48; } diff --git a/themes/night.css b/themes/night.css index 52748567ef74c3781014e704e47691bb88d1a47e..b30c260f6ab7f961bc8611b5b29db0fd0a08bbbf 100644 --- a/themes/night.css +++ b/themes/night.css @@ -1035,6 +1035,10 @@ body.ttrss_main .pull-left, body.ttrss_utility .pull-left { float: left; } +body.ttrss_main .pre-wrap, +body.ttrss_utility .pre-wrap { + white-space: pre-wrap; +} body.ttrss_main .text-error, body.ttrss_utility .text-error { color: #b94a48; diff --git a/themes/night_blue.css b/themes/night_blue.css index 4e4e68a54346aa9f39c4ba5bd677ac7a9ff3815a..46f1aa124b1f4c1f4cc086a9ccf1487199b87e22 100644 --- a/themes/night_blue.css +++ b/themes/night_blue.css @@ -1035,6 +1035,10 @@ body.ttrss_main .pull-left, body.ttrss_utility .pull-left { float: left; } +body.ttrss_main .pre-wrap, +body.ttrss_utility .pre-wrap { + white-space: pre-wrap; +} body.ttrss_main .text-error, body.ttrss_utility .text-error { color: #b94a48;