bug #16183 [VarDumper] Fix wordwrap with Bootstrap (ogizanagi)
This PR was merged into the 2.7 branch.
Discussion
----------
[VarDumper] Fix wordwrap with Bootstrap
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
Without this rule, there can be issues in the profiler bar and css from bootstrap (https://github.com/twbs/bootstrap/blob/v3.3.5/less/code.less#L47)
<img width="888" alt="screenshot 2015-10-09 a 18 09 28" src="https://cloud.githubusercontent.com/assets/2211145/10400156/645c77a6-6eb7-11e5-954b-f80c34b09f86.PNG">
Commits
-------
e448e1c
[VarDumper] Fix wordwrap with Bootstrap
This commit is contained in:
commit
c98ce2a6e3
@ -31,7 +31,7 @@ class HtmlDumper extends CliDumper
|
|||||||
protected $headerIsDumped = false;
|
protected $headerIsDumped = false;
|
||||||
protected $lastDepth = -1;
|
protected $lastDepth = -1;
|
||||||
protected $styles = array(
|
protected $styles = array(
|
||||||
'default' => 'background-color:#18171B; color:#FF8400; line-height:1.2em; font:12px Menlo, Monaco, Consolas, monospace; word-wrap: break-word; white-space: pre-wrap; position:relative; z-index:100000',
|
'default' => 'background-color:#18171B; color:#FF8400; line-height:1.2em; font:12px Menlo, Monaco, Consolas, monospace; word-wrap: break-word; white-space: pre-wrap; position:relative; z-index:100000; word-break: normal',
|
||||||
'num' => 'font-weight:bold; color:#1299DA',
|
'num' => 'font-weight:bold; color:#1299DA',
|
||||||
'const' => 'font-weight:bold',
|
'const' => 'font-weight:bold',
|
||||||
'str' => 'font-weight:bold; color:#56DB3A',
|
'str' => 'font-weight:bold; color:#56DB3A',
|
||||||
|
Reference in New Issue
Block a user