Bug 1420256 - Make longStrings wrap; r=Honza.
authorNicolas Chevobbe <nchevobbe@mozilla.com>
Tue, 18 Sep 2018 12:50:16 +0000
changeset 485437 7bb7b47854be51f7dbba28b48ceac60ad8ae27d2
parent 485436 3ad8d79f62b106d0e9c1d69919c37135036661e6
child 485438 f4473d447a484a9a684f617daf4ef87be1a534fc
push id241
push userfmarier@mozilla.com
push dateMon, 24 Sep 2018 21:48:02 +0000
reviewersHonza
bugs1420256
milestone64.0a1
Bug 1420256 - Make longStrings wrap; r=Honza. This makes long strings without spaces wrap in the console output. Also fixes object with long string properties. Differential Revision: https://phabricator.services.mozilla.com/D6040
devtools/client/themes/webconsole.css
--- a/devtools/client/themes/webconsole.css
+++ b/devtools/client/themes/webconsole.css
@@ -896,16 +896,17 @@ body {
 
 .webconsole-flex-wrapper > .webconsole-output:empty ~ .jsterm-input-container {
   border-top: none;
 }
 
 /* Object Inspector */
 .webconsole-output-wrapper .object-inspector.tree {
   display: inline-block;
+  max-width: 100%;
 }
 
 .webconsole-output-wrapper .object-inspector.tree .tree-indent {
   border-inline-start-color: var(--console-output-indent-border-color);
 }
 
 .webconsole-output-wrapper .object-inspector.tree .tree-node:hover:not(.focused) {
   background-color: var(--object-inspector-hover-background);