Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Issue 5879 (Crop long CSS values in Computed side panel)

  • Loading branch information...
commit 8021d46b681949a7d6641d236ff6981ac39f7f3b 1 parent de6cbe6
@SebastianZ SebastianZ authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 extension/content/firebug/css/computedPanel.js
View
4 extension/content/firebug/css/computedPanel.js
@@ -142,6 +142,10 @@ CSSComputedPanel.prototype = Obj.extend(Firebug.Panel,
else if (Options.get("colorDisplay") == "hsl")
value = Css.rgbToHSL(value);
+ var limit = Options.get("stringCropLength");
+ if (limit > 0)
+ value = Str.cropString(value, limit);
+
// Add a zero-width space after a comma to allow line breaking
return value.replace(/,/g, ",\u200B");
}
Please sign in to comment.
Something went wrong with that request. Please try again.